Results 1 to 5 of 5
Thread: Can you create two GUIs?
- 05-16-2010, 07:40 PM #1
Member
- Join Date
- May 2010
- Posts
- 9
- Rep Power
- 0
Can you create two GUIs?
Hey
ive been recently creating a utility which is an interactive map. My problem is i have a window for the interactive map and a window for a distance tool, however, my distance tool (including JCombo Boxes and JLabels) are appearing on both windows, how do i make it so it only appears on one? I though maybe you create two GUIs for the windows?
- 05-16-2010, 07:50 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,408
- Blog Entries
- 7
- Rep Power
- 17
- 05-16-2010, 08:00 PM #3
What do you mean by GUIs? Are you using the JFrame class to create windows?
How are you adding the components to the windows? Is there a common component that you are adding to both windows?
Not sure what you mean by saying the tools are appearing on both windows.
- 05-16-2010, 09:58 PM #4
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Actually a component can only have a single parent. So if a component is appearing on two frames it is because you are creating two components and add each component to a different frame. Don't do this and you won't have a problem.
- 05-18-2010, 11:08 AM #5
Member
- Join Date
- May 2010
- Posts
- 9
- Rep Power
- 0
Similar Threads
-
guis and php
By paddala in forum Advanced JavaReplies: 1Last Post: 02-18-2010, 02:43 AM -
How to create the Jvm using JDK?
By Sungron in forum New To JavaReplies: 4Last Post: 02-01-2010, 10:50 AM -
to create Web Application
By bhangale.parag in forum Web FrameworksReplies: 0Last Post: 12-17-2008, 01:38 PM -
How to create a sash in SWT
By Java Tip in forum SWTReplies: 0Last Post: 07-02-2008, 08:04 PM -
Create XML From XSD
By Jack in forum XMLReplies: 1Last Post: 07-09-2007, 12:56 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks