Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~666 People Reached
Favorite Forums

4 Posted Topics

Member Avatar for drogba123
Member Avatar for drogba123
0
286
Member Avatar for titan5

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 = …

Member Avatar for titan5
0
122
Member Avatar for shelexelex

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; …

Member Avatar for DDirectJ
0
83
Member Avatar for DDirectJ

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)

Member Avatar for DDirectJ
0
175

The End.