Solved

working with jtabbedpane in intellij idea

Posted on 2004-09-29
4
821 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
Comment Utility
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
Comment Utility
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
Comment Utility
Just installing the IDE now. I'll have a look.
0
 
LVL 4

Accepted Solution

by:
gdrnec earned 100 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

743 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

14 Experts available now in Live!

Get 1:1 Help Now