Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2008

Tip: Looking for answers? Try searching our database.

Frame and JSplitPanel

Thread view: 
a - 02 Jan 2008 09:10 GMT
Hi

I have a Frame that is able to load a picture and have some graphic
features.
How can I put it on a JSplitPanel and make it scrollable?

Thanks
Andrew Thompson - 02 Jan 2008 10:59 GMT
...
>I have a Frame ..

A java.awt.Frame or a javax.swing.JFrame?  If a)
"don't mix swing with AWT", if either, please be
more specific.

>..that is able to load a picture and have some graphic
>features.
>How can I put it on a JSplitPanel ..

Again, is that a JSplitPane (in the javax.swing package),
or are you referring to a 3rd party class?  There is no
J2SE JSplitPaneL.

>..and make it scrollable?

Put 'it' in a JScrollPane.

For anything beyond that, try doing the Java Tutorial
layout trail.

Signature

Andrew Thompson
http://www.physci.org/

RedGrittyBrick - 02 Jan 2008 12:02 GMT
> Hi
>
> I have a Frame that is able to load a picture and have some graphic
> features.
> How can I put it on a JSplitPanel and make it scrollable?

AFAIK you can't put a Frame or JFrame into a JSplitPanel. You'll have to
take the JPanel that you implicitly or explicitly set as the JFrame's
content pane and add that JPanel to a JScrollPane and then add that
JScrollPane to a JSplitPanel and finally set the JSplitPanel as the
content pane of a JFrame

If I were you I'd construct a SSCCE - a small self-contained compilable
example that people can cut from your message, paste into a *.java file
(or IDE) and compile & run to see what you are trying to achieve.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.