Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.17 seconds.

  1. Replies
    10
    Views
    3,037

    Re: Resizable image?

    Sure, using a layout helps resize the components... but that does not magically resize the images on those components, unless the painting code specifically takes the size into account. You can do...
  2. Replies
    10
    Views
    3,037

    Re: Resizable image?

    I'm really not sure how using a different layout or calling revalidate will help resize the image. Even if the JLabel size is changed, that doesn't affect the image size (correct?).

    I would extend...
  3. Replies
    10
    Views
    3,037

    Re: Resizable image?

    You might have to do some custom painting. Recommended reading: Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)
Results 1 to 3 of 3