Search:

Type: Posts; User: jps

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,023

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

    1 px wide and 2 px high are valid sizes for a component. (0, 0) is a valid size. The method does not deal with size in pixels, it takes a Dimension as the only parameter.
  2. Replies
    6
    Views
    1,224

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

    //This is the part that is not working
    calculate1.setPreferredSize(1,2);

    setPreferredSize() takes a Dimension as a parameter
  3. Replies
    6
    Views
    1,224

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

    There are several methods that would set a dimension for a component, (some of which have been depreciated). Can you post a SSCCE that shows where you are setting the size?
    Layout managers...
  4. Replies
    6
    Views
    1,224

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

    What have you tried?
    How is the layout managed? ...with a layout manager or other?
Results 1 to 4 of 4