Solved

working with jtabbedpane in intellij idea

Posted on 2004-09-29
4
833 Views
Last Modified: 2013-12-14
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?
0
Comment
Question by:somebody314
  • 3
4 Comments
 
LVL 4

Expert Comment

by:gdrnec
ID: 12179763
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
0
 

Author Comment

by:somebody314
ID: 12179806
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.
0
 
LVL 4

Expert Comment

by:gdrnec
ID: 12180030
Just installing the IDE now. I'll have a look.
0
 
LVL 4

Accepted Solution

by:
gdrnec earned 100 total points
ID: 12180241
OK, just installed it. And as I thought, the process of adding tabs to the tabbed pane is the same as most ide's, just select the JPanel icon and put it in the Tab section of the JTabbedPane. Each time you do this, it adds another tab.

To drop a control (JButton) on a specific tab, select the tab, then click on its associated panel (select the tab's panel), then drop a JButton onto it.

I just did this so I'm quite sure it works. If my explaination isn't good, let me know and I'll try again.

Geoff
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now