Results 1 to 3 of 3

Thread: Image in JLabel

  1. #1
    ishere11 is offline Member
    Join Date
    Apr 2010
    Posts
    2
    Rep Power
    0

    Default Image in JLabel

    Hello everyone,

    I have a problem. I'd like to put an image in a JLabel or JButton but every time I load the component, the component resizes depending on size of the image. My problem is that how you want the image to resize depending on the size of the button or label.


    thanks.

  2. #2
    Michael Dunn is offline Member
    Join Date
    Jul 2008
    Posts
    62
    Rep Power
    0

    Default

    did you really need to cross-post?

    Image in JLabel (Swing / AWT / SWT / JFace forum at JavaRanch)

    all you've achieved is having your name added to most of the regular's 'ignore' list

  3. #3
    ishere11 is offline Member
    Join Date
    Apr 2010
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Adding a JLabel to a JPanel - jlabel not showing
    By Bongeh in forum New To Java
    Replies: 17
    Last Post: 04-06-2010, 11:02 PM
  2. jLabel
    By Matty in forum AWT / Swing
    Replies: 3
    Last Post: 09-22-2008, 10:22 PM
  3. GUI - JLabel
    By Azndaddy in forum New To Java
    Replies: 8
    Last Post: 05-02-2008, 07:03 AM
  4. JLabel
    By Jack in forum AWT / Swing
    Replies: 2
    Last Post: 07-02-2007, 01:55 PM
  5. JLabel
    By Freddie in forum AWT / Swing
    Replies: 2
    Last Post: 05-29-2007, 02:19 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
  •