File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
push flowlayout panel to the left.
Peter Primrose
Ranch Hand
Joined: Sep 10, 2004
Posts: 755
posted
May 30, 2006 16:18:00
0
how can you push the panel to the left?
I have a flowLayout panel
JPanel
p = new
JPanel
();
p.add(new
JLabel
("hi"));
I tried:
p.add(new
JLabel
("hi"), FlowLayout.LEFT) //didn't work.
anyone?
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
May 30, 2006 17:48:00
0
JPanel
p = new
JPanel
(new
FlowLayout
(FlowLayout.LEFT));
p.add(new
JLabel
("hi"));
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: push flowlayout panel to the left.
Similar Threads
jpanel and internal frame
How to make a neat form?
Need suggestion reg Layout Managers
clear jPanel
MouseWheelListener
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter