I have a class that creates JPanels. Main JPanel has BorderLayout and on the center has the second JPanel that has GridLayout(6,0). At the end, those panels, added on the EAST side of my main Panel and Frame. My first question is, how i can have those cells (GridLayout) without gaps between them, something like pack(). Secondly, in those cells, each time i have variable number of images, the same image but different loops each time(0-5). When i had it on different window i was using dispose() method to update the window each time. How i can do this now under these circumstances? Panel now always has the default value (0) and remain like that, never update.
3 replies to this topic
#1
Posted 06 July 2011 - 04:39 AM
"Programming is like sex. One mistake and you have to support it for the rest of your life."
-Michael Sinz|
|
|
#2
Posted 06 July 2011 - 02:21 PM
#3
Posted 07 July 2011 - 01:05 AM
What do you mean by 3rd constructor?
"Programming is like sex. One mistake and you have to support it for the rest of your life."
-Michael Sinz
#4
Posted 07 July 2011 - 03:05 AM
He's pointing to this one ->
http://download.orac...#GridLayout(int, int, int, int)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









