Results 1 to 3 of 3
  1. #1
    quito is offline Member
    Join Date
    May 2012
    Posts
    4
    Rep Power
    0

    Default BorderLayout - NORTH in the middle

    I have add(jLabel5, BorderLayout.NORTH); - but in that case jLabel5 is in the left side and I would like middle.

  2. #2
    eRaaaa is offline Senior Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    787
    Rep Power
    6

    Default Re: BorderLayout - NORTH in the middle

    I think you are searching for
    label5.setHorizontalAlignment(JLabel.CENTER);

  3. #3
    quito is offline Member
    Join Date
    May 2012
    Posts
    4
    Rep Power
    0

Similar Threads

  1. BorderLayout NORTH small?
    By burgergetsbored in forum New To Java
    Replies: 9
    Last Post: 03-10-2012, 11:16 PM
  2. Senior Java Developer - North Yorkshire - UK
    By thecitysecret in forum Jobs Offered
    Replies: 0
    Last Post: 03-17-2011, 02:45 PM
  3. Replies: 1
    Last Post: 03-15-2010, 11:30 AM
  4. Developer III - JAVA; North Texas area
    By ScottSearch in forum Jobs Offered
    Replies: 0
    Last Post: 09-22-2008, 10:06 PM
  5. Java/Application Developers Needed - North Carolina
    By brown2sl in forum Jobs Offered
    Replies: 0
    Last Post: 03-10-2008, 08:17 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
  •