Advertisement
Guest User

Untitled

a guest
Nov 1st, 2007
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public class pladenPanel extends JPanel implements MouseAdapter {
  2. JPanel Pladen = new JPanel(new GridLayout(10,10));
  3.  
  4. public void lavPladen() {
  5.  
  6. for(int i=0; i<10; i++) {
  7. for(int y=0; y<10; y++) {
  8. int placering = y+i;
  9. Pladen.add(new JButton().putClientProperty(placering , Point(y,i)));
  10.  
  11. }
  12. }
  13.  
  14. addMouseAdapter(this);
  15.  
  16. }
  17.  
  18.  
  19. }
  20.  
  21. public void mouseClicked(MouseEvent e) {
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement