File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes push flowlayout panel to the left. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "push flowlayout panel to the left." Watch "push flowlayout panel to the left." New topic
Author

push flowlayout panel to the left.

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
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
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