setBounds()


setBounds to position an element in JFrame

setBounds(X,Y,WIDTH,HEIGHT);
Upper Left corner is X=0 and Y=0.
JRadioButton r1 = new JRadioButton("My Radio button");
r1.setBounds(94, 149, 142, 23);
contentPane.add(r1);


Button with Textfield and Lable

swing
Java


plus2net.com






We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2025   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer