aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Moving a picture down a bit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Moving a picture down a bit" Watch "Moving a picture down a bit" New topic
Author

Moving a picture down a bit

K An
Greenhorn

Joined: Sep 13, 2004
Posts: 3
This is what I have:
http://www.imagedump.com/index.cgi?pick=setandget&tp=122498&poll_id=0&category_id=19&warned=y

and this is what I want:
http://www.imagedump.com/index.cgi?pick=setandget&tp=122499&poll_id=0&category_id=19&warned=y

Here's my code:


I don't know how to do this. Any help is appreciated.
Thanks
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, K An!

I'm moving this to the Swing / AWT / SWT / JFace forum, where folks love to get all messy with this GUI stuff...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Pat Hays
Ranch Hand

Joined: Aug 20, 2004
Posts: 138
Using BorderLayout instead of GridLayout


Download Java GUI Builder, <a href="http://www.mars3000.com" target="_blank" rel="nofollow">http://www.mars3000.com</a>
K An
Greenhorn

Joined: Sep 13, 2004
Posts: 3
Is there a way less complicated? I was hoping a could turn the .west part into a 2,1 grid or something. I'm not fimiliar with a lot of the things in your code, though it works perfectly. Is there a simple thing like \n or something to that effect?
K An
Greenhorn

Joined: Sep 13, 2004
Posts: 3
Sorry, just figured it out.
Thanks you very much. You were a great help
Pat Hays
Ranch Hand

Joined: Aug 20, 2004
Posts: 138
less complicated code:

Just focus on the following code, the contentPane is using BorderLayout & another JPanel is using GridLayout.

contentPane.setLayout(new BorderLayout(0, 0));
contentPane.add(panel_loges, BorderLayout.WEST);
contentPane.add(jTabbedPane1, BorderLayout.CENTER);

jLabel1.setIcon(new ImageIcon("money.jpg"));
jLabel2.setIcon(new ImageIcon("2000.gif"));

panel_loges.setLayout(new GridLayout(2, 0, 5, 5));
panel_loges.add(jLabel1, 0);
panel_loges.add(jLabel2, 1);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Moving a picture down a bit