Results 1 to 1 of 1
  1. #1
    IamKira is offline Member
    Join Date
    Jul 2009
    Posts
    11
    Rep Power
    0

    Default The scale() method

    Hi,

    If we override the paintComponet method of a JComponent, let's say a JButton, and we call the scale(double, double) method on the Graphics object where both of the parameters are lower than 1, the button will appear smaller on the GUI accordingly to the paramaters values. However, the area on the parent container that is allocated to the button to render itself in will remain the same, which makes the button take and react to input outside of it's box.

    Does any one know how to fix this. thx
    Last edited by IamKira; 07-15-2009 at 04:50 PM.

Similar Threads

  1. How to use Scale in SWT
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-07-2008, 04:49 PM
  2. Transform Scale
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-21-2008, 08:53 PM
  3. Scale 2 or more pictures using a JSlider
    By Panchitopro in forum AWT / Swing
    Replies: 4
    Last Post: 05-20-2008, 04:44 PM
  4. Scale 2 or more pictures using a JSlider
    By Panchitopro in forum New To Java
    Replies: 0
    Last Post: 05-05-2008, 05:22 PM
  5. Small scale Java Editor
    By Greenfrog99 in forum AWT / Swing
    Replies: 0
    Last Post: 01-27-2008, 08:46 PM

Posting Permissions

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