why bothering with compilier, better could be to post to forum, isn't it .......
there isnt created any of two JFrames,
there are two main methods remove one of them
don't extend JFrame, create that as local variable, otherwise part of important methods isn't accesible directly, more in describtions composition versus inheritance
dirty hack to change
from
public class GUIFlowLayout extends GUIFrame {
to
public class GUIFlowLayout extends JFrame {
then GUI could be displayed correctly
have look at Initial Thread
change FlowLayout to SpringLayout
replace frame.setSize(200, 200); with frame.pack(); and move that before JFrame#setVisible(true)
mKorbel
Nearly a Posting Virtuoso
1,215 posts since Feb 2011
Reputation Points: 482
Solved Threads: 239
Skill Endorsements: 12
Question Answered as of 7 Months Ago by
mKorbel