File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes how to divide a frame??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to divide a frame???" Watch "how to divide a frame???" New topic

how to divide a frame???

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1012
i have a JFrame of 800,600.
i want to divide that into two parts,
i mean one part of the frame should have another thing and one should have another,
the first part should have somthing like simulator, and the second should have some components (ie. buttons and progress bars),
and when i press button or move progress bar, the changes should made into my first frame(simulator).
how to i divide my frame in two parts???
or can i do something else to do this???
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3152

I think you are looking for JSplitPane (tutorial)

Mohamed Sanaulla | My Blog
I agree. Here's the link:
subject: how to divide a frame???
It's not a secret anymore!