Reputation: 0 Apprentice
- Active Members
- Active Posts:
- 126 (0.15 per day)
- 01-March 11
- Profile Views:
- Last Active:
- Dec 03 2012 08:27 PM
- Dream Kudos:
Posts I've Made
Posted 28 Nov 2012Fixed it. Thank you so much to both.
Posted 14 Nov 2012Really? What was your first solution that you told me in that I never added your ClockViewerComonent component to the JFrame?
Posted 14 Nov 2012I modified my createPanel() method & it works, but the clock ends up at the very bottom of the frame when in reality, it should be just right under the 2 text fields. Any ideas on how to fix this?
panel = new JPanel(); JPanel inputPanel = new JPanel (); panel.setLayout (new GridLayout (2, 1)); inputPanel.add(hourLabel); inputPanel.add(hourField); inputPanel.add(minuteLabel); inputPanel.add(minuteField); inputPanel.add(button); panel.add (inputPanel); panel.add(component); this.getContentPane ().add(panel);
Posted 14 Nov 2012I don't really follow & don't really see where to add the ClockViewerComonent component.
Posted 14 Nov 2012I added that just right now & it still didn't work.
- Member Title:
- D.I.C Head
- Age Unknown
- Birthday Unknown
AaronHopkins hasn't added any friends yet.