No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
sorry, your question isn't clear. What do you want to do when you get the subfolder.
i'll say that the best method is to add menu2 to menu1 just like you will add a button to a menu Example:[CODE] import javax.swing.*; public class MenuTestFrame extends JFrame{ public MenuTestFrame(){ setSize(300, 300); setLocationRelativeTo(null); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JMenuBar theBar = new JMenuBar(); setJMenuBar(theBar); JMenu menu1 = new JMenu("Menu1"); JMenu menu2 = …
first a constructor has the same name as the class itself, methods do not. second, a constructor is used to instantiate an object, using the [CODE]new[/CODE] keyword, a method does not necessarily instantiate an object. Also a method always specifies a return type, either void(nothing) or double, int, String, etc; …
i'd like to ask how one can get rid of all the components in a JPanel (buttons, labels, comboboxes etc), so that you can add new components (at run time that is)
The End.
DDirectJ