Search:

Type: Posts; User: syedbhai

Search: Search took 0.36 seconds.

  1. Replies
    3
    Views
    1,020

    Re: Need help editing the size of a JButton!?!?

    jps,
    I just experimented with what you have said. Its incorrect.
    I created one JButton object and added it to a JFrame object.
    When I invoked setPreferredSize(new Dimension(1,2)) the button...
  2. Replies
    6
    Views
    1,220

    Re: Need help editing the size of a JButton!?!?

    Hello.
    You may set the dimensions using setPreferredSize() or setSize() methods.
    You can also set the X and Y location for the buttons.
    Just check the API - JButton (Java Platform SE 7 )
    ...
Results 1 to 2 of 2