Link to home
Start Free TrialLog in
Avatar of somebody314
somebody314

asked on

working with jtabbedpane in intellij idea

I want to know how can i work with JTabbedPane component in GUI designer in IntellijIDEA ?

How can i place some component like "JButton" in a special page?
and How can i create new pages in tabbed pane component?
Avatar of gdrnec
gdrnec
Flag of United States of America image

Unfortunately I don't know IntelliJ very well (if at all) but to answer your last question first, you usually drop a JPanel on the JTabbedPane component (where the tabs are) and it should add a tab for you. This is how it works in NetBeans and JBuilder.

What do you mean by a special page for your JButton?

Geoff
Avatar of somebody314
somebody314

ASKER

When you click on JTabbedPane and click on the panel you are working on , IDEA creates an empty rectangle (at least what it seems) and when you again click on jtabbed pane and on this empty rectabgle , IDEA creates some tab pages which are empty and their label appeeras at top of the JTabbedPane component .

But the problem is that when i want to place a button in a special page of tabbed pane , IDEA creates a new page and places the button in that page which is unwanted .

I think this is in the newest version of IDEA , 4.5 and older version do not support jtabbedpane.
Just installing the IDE now. I'll have a look.
ASKER CERTIFIED SOLUTION
Avatar of gdrnec
gdrnec
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial