?
Solved

working with jtabbedpane in intellij idea

Posted on 2004-09-29
4
Medium Priority
?
929 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 300 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month13 days, 2 hours left to enroll

777 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