11 years ago*

Comment has been collapsed.

Remove the "//" in line 35

11 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

11 years ago
Permalink

Comment has been collapsed.

you need to use layout..
you can't attach everything to main frame...
java GUI sucks a lot

11 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

11 years ago
Permalink

Comment has been collapsed.

i mean, dont put layout directly to frame..
put it into jpanel, and put that jpanel to main frame

or i prefer, using netbeans for drag and drop function

11 years ago
Permalink

Comment has been collapsed.

+1 for both :D
Or add Google Window Builder Plugin for drag n' drop in Eclipse with normal eclipse look of GUI:P

11 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

11 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

11 years ago
Permalink

Comment has been collapsed.

add: frame.pack();
to pack them togehter :P
EDIT: you don't have to use setVisible() on panel :P

11 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

11 years ago
Permalink

Comment has been collapsed.

Try with for
for(int i = 0;i < 40; i++)
{
panel.add(new JLabel(new ImageIcon("C:\images\emptyWhite.png")));
panel.add(new JLabel(new ImageIcon("C:\images\emptyBlack.png")));
}
I'm not sure, I didn't code much lately in Java, atleast not normal GUI's :P..

11 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

11 years ago
Permalink

Comment has been collapsed.

Does it work ? :D

11 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

11 years ago
Permalink

Comment has been collapsed.

Hehe, nice :P
That's my usuall mistake that I rarely find lololo

11 years ago
Permalink

Comment has been collapsed.

Closed 11 years ago by TheNamlessGuy.