Java Help

Edit: better idea

Make a new JPanel (or Panel) with a FlowLayout as the layout manager and then add that panel to the frame.
 
it's been a long damn time since i've done anything in java,

xtraBut.setBounds(0, 0, 0, 0);

but right there, isn't that setting the width and height of the button to 0?

setBounds
public void setBounds(int x,
int y,
int width,
int height)Moves and resizes this component. The new location of the top-left corner is specified by x and y, and the new size is specified by width and height.
 
Yogi, I'm not that versed in Java to do something like that, only taken one semester of it. That sounds way too confusing. :)

eris, that was the last thing I tried before coming here. Anything I have put in there results in the same problem.
 
in that case, i'm gonna have to agree with yogi

use the swing library, and add everything to a jpanel that you can set the layout of

there should be shit on how to do it in your java book, there was in the one i had my first semester of java
 
OK, fixed it, problem was that I had to set the Layout to null to be able to place buttons where I wanted. Thanks for the help.
 
Back
Top