Well, since Frame is a Container, then you may be able to just change the LayoutManager. Try saying:
frame.setLayout(new FlowLayout());
before you add anything.
No idea if it will work, but its...
Type: Posts; User: aussiemcgr
Well, since Frame is a Container, then you may be able to just change the LayoutManager. Try saying:
frame.setLayout(new FlowLayout());
before you add anything.
No idea if it will work, but its...
Why can't you use JPanels? The assignment specifics or something? Can you use any sort of container? Is it a Frame or a JFrame?
Are you adding to the frame or a JPanel? I believe this is an issue with the default layout manager or something. I can't remember off the top of my head since I haven't done any low-level GUI work...