Can you create two GUIs?
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?
Maybe an JInternalFrame can be of any help?
Originally Posted by SNPTT
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.
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.
Originally Posted by Norm
Originally Posted by camickr
Hey guys, Thanks for answering :). In the end i created another class and ran them parallel using a JButton, i think :/ well whatever it was it seemed to work (Y)
Originally Posted by JosAH