Results 1 to 3 of 3
  1. #1
    g123456 is offline Member
    Join Date
    Dec 2009
    Posts
    34
    Rep Power
    0

    Default Swing JLabel Problem

    I have added an icon and some text inside a JLabel and now i am trying to manipulate it so the Icon goes on the top and the text under the icon... how can i do it ? while i have achieved setting the text on the bottom by the setVerticalText i still fail to put it under the icon..

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,236
    Rep Power
    7

    Default

    while i have achieved setting the text on the bottom by the setVerticalText i still fail to put it under the icon..
    You need to set the horizontal placement as well.

  3. #3
    g123456 is offline Member
    Join Date
    Dec 2009
    Posts
    34
    Rep Power
    0

    Default

    thanks a lot i have managed to make it the problem was that i had to put the horizontial to be center.. while the vertical bottom

    thanks a lot anyways!

Similar Threads

  1. problem with JDeveloper and Swing
    By Namrata in forum Other IDEs
    Replies: 3
    Last Post: 09-27-2009, 07:06 PM
  2. Problem altering text in JLabel
    By porchrat in forum New To Java
    Replies: 3
    Last Post: 06-29-2009, 12:37 AM
  3. JLabel + GUI problem
    By tonyelaltaico in forum Java Applets
    Replies: 5
    Last Post: 02-03-2009, 01:46 AM
  4. Problem In Swing Components
    By SANDY_INDIA in forum AWT / Swing
    Replies: 1
    Last Post: 07-19-2008, 10:23 PM
  5. SWT & Swing Bridge problem
    By roshithmca in forum AWT / Swing
    Replies: 0
    Last Post: 03-26-2008, 01:23 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
  •