Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 2nd, 2009, 10:42 AM
Registered User
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Shteff
Default Need help with swing

Hi everyone!

I'm trying to create a graphical editor application and this is the first time that I use JDesktopPane. It works really well, but I have a following problem...
I want to add a JToolBar in JDesktopPane, like in Photoshop, PowerDesigner and other graphical editors, but I can't figure out the right way to make this work.
Any help please?
Old March 5th, 2009, 02:31 AM
Friend of Wrox
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post

You can use something like

getContentPane().add(toolBarObject, BorderLayout.NORTH);

Hope it helps.
- Rakesh

Similar Threads
Thread Thread Starter Forum Replies Last Post
swing components jagan7 Java Basics 1 July 21st, 2007 05:19 AM
Swing Servlet Communication ? ? ? nigam.anand Servlets 0 April 22nd, 2006 02:27 AM
Swing and JSP Huxuelei JSP Basics 0 March 15th, 2005 09:01 AM
javax.swing on linux sunstrike Java GUI 3 July 11th, 2003 02:04 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.