hello all
how to put more than one JLabel in a vertical direction,and right align
by computing the length of each of JLabel.Text
so the appearance like below
Name:
Position:
age:
thank you
denny
hello all
how to put more than one JLabel in a vertical direction,and right align
by computing the length of each of JLabel.Text
so the appearance like below
Name:
Position:
age:
thank you
denny
hello all
uups
I have tried to make it right align,but (in my first posting)
it changed unintentionally to left align
thank you
denny
Here's a link that might help
http://www.java2s.com/Code/Java/Swing-JFC/AsimpledemonstrationoftextalignmentinJLabels.htm
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.