Results 1 to 4 of 4

Thread: JRadioButton

  1. #1
    gyijhbk is offline Member
    Join Date
    Feb 2012
    Posts
    61
    Rep Power
    0

    Default JRadioButton

    Why I cant change the position of the textbox?
    Java Code:
       	 radio= new JRadioButton("pyrwa opciq");
        	 radio.setLocation(200, 50);
        	 add(radio);

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,651
    Blog Entries
    7
    Rep Power
    21

    Default Re: JRadioButton

    Maybe the container to which you add your JRadioButton has a LayoutManager?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    gyijhbk is offline Member
    Join Date
    Feb 2012
    Posts
    61
    Rep Power
    0

    Default Re: JRadioButton

    Quote Originally Posted by JosAH View Post
    Maybe the container to which you add your JRadioButton has a LayoutManager?

    kind regards,

    Jos
    Yes.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,405
    Rep Power
    20

    Default Re: JRadioButton

    Quote Originally Posted by gyijhbk View Post
    Why I cant change the position of the textbox?
    Java Code:
       	 radio= new JRadioButton("pyrwa opciq");
        	 radio.setLocation(200, 50);
        	 add(radio);
    1. What's a textbox?
    2. Regardles of what it is, what textbox?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. JButton convert JRadioButton
    By acat in forum New To Java
    Replies: 2
    Last Post: 04-11-2011, 04:17 PM
  2. Help on using JRadioButton with images
    By Nych in forum New To Java
    Replies: 3
    Last Post: 03-16-2011, 08:12 AM
  3. JRadioButton
    By mcajavaprogramer in forum AWT / Swing
    Replies: 1
    Last Post: 11-05-2010, 01:31 PM
  4. BackGround JRadioButton
    By antonello12 in forum AWT / Swing
    Replies: 1
    Last Post: 10-10-2009, 06:33 AM
  5. JRadioButton set object color
    By King8654 in forum AWT / Swing
    Replies: 4
    Last Post: 04-24-2008, 09:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •