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

Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    Post your comments , suggestion , error , requirements etc here




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