Solved

working with jtabbedpane in intellij idea

Posted on 2004-09-29
4
880 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Suggested Solutions

Title # Comments Views Activity
throw exception 21 75
Unhandled exception type Exception 18 62
SequenceInputStream example 3 32
Cisco ASA: Java web start no go, asdm launcher no go 3 78
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.

731 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