Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: [Help] JLabel Vertical Alignment

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [Help] JLabel Vertical Alignment

    Hello, I need code that will allow me to display the Label in Vertical form. I am using JFrame not JPanel, I don't know if I still need to post my codes, because I don't have any error in my program, just asking the right code for my question. I've been searching in google but I can't see accurate. Please post here what to import and the code. I need to put the label, bottom of my graph.







    Yes.jpg


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    606
    My Mood
    Sleepy
    Thanks
    10
    Thanked 90 Times in 83 Posts

    Default Re: [Help] JLabel Vertical Alignment

    Google VerticalLabelUI

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: [Help] JLabel Vertical Alignment

    Quote Originally Posted by PhHein View Post
    Google VerticalLabelUI
    Everything is JPanel, I'm using JFrame.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,592
    Thanks
    50
    Thanked 2,235 Times in 2,207 Posts

    Default Re: [Help] JLabel Vertical Alignment

    Both JPanel and JFrame extend the Container class. Did you try using a reference to the JFrame where the code you found used the JPanel?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: [Help] JLabel Vertical Alignment

    Quote Originally Posted by Norm View Post
    Both JPanel and JFrame extend the Container class. Did you try using a reference to the JFrame where the code you found used the JPanel?
    Doesn't matter now, come up with other idea, which is I'll make different pictures and colors that will assign to my candidates.

Similar Threads

  1. Vertical mirror help
    By bbjk08 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 24th, 2013, 06:31 AM
  2. Loop through JLabel and change JLabel
    By JoeBrown in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 11th, 2012, 12:52 PM
  3. Output Alignment
    By Fahmi in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: August 22nd, 2010, 04:14 PM
  4. Output Alignment
    By xdrechsler in forum Loops & Control Statements
    Replies: 1
    Last Post: August 18th, 2010, 10:26 AM
  5. Alignment
    By angelaffxmaniac in forum Java Theory & Questions
    Replies: 1
    Last Post: May 13th, 2010, 08:55 AM