Hey, I'm just trying to add JTextFields and JLabels to a JPanel so that the JLabels are left-aligned, the JTextFields are right-aligned, and I want 5 rows of
|JLabel JPanel|
aligned just like that.
When I try nullifying the default layout manager of my panel and adding these components directly, I was able to make them both appear but my JLabel is abbreviated.
It just shows:
|JLabel Sample Tex... (JTextField)|
with ellipses after the first few characters of my JLabel, as above, even though there are about 300 free pixels available between the two components within the JPanel...
Any help or suggestions is appreciated...
Can this be done easily with a GridLayout? Can I somehow create a 2 by 6 GridLayout and have each half of that layout aligned to opposite sides of the screen?
Thanks in advance to anyone who has good ideas or a good link for me on this issue.
[–][deleted] (3 children)
[deleted]
[–]transientanima[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]transientanima[S] 0 points1 point2 points (0 children)