Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / May 2008

Tip: Looking for answers? Try searching our database.

Problems with JTabbedPane

Thread view: 
Hakan - 16 May 2008 15:37 GMT
Why aren't the tabs in my JTabbedPane showing? I have a JTabbedPane
with a number of JPanels placed on a JPanel in a JFrame, but the entire
display is just empty. I made sure to call setVisible to be safe.

Signature

Newsoffice.de - Die Onlinesoftware zum Lesen und Schreiben im Usenet
Die Signatur läßt sich nach Belieben anpassen ;-)

RedGrittyBrick - 16 May 2008 16:00 GMT
> Why aren't the tabs in my JTabbedPane showing? I have a JTabbedPane with
> a number of JPanels placed on a JPanel in a JFrame, but the entire
> display is just empty. I made sure to call setVisible to be safe.

The solution to your problem is explained here: <http://sscce.org/>

Signature

RGB

Hakan - 16 May 2008 20:36 GMT
>> Why aren't the tabs in my JTabbedPane showing? I have a JTabbedPane with
>> a number of JPanels placed on a JPanel in a JFrame, but the entire
>> display is just empty. I made sure to call setVisible to be safe.

> The solution to your problem is explained here: <http://sscce.org/>

Is that a bad joke? There's nohting useful there. You don't even seem to
have read my original question.

Signature

Newsoffice.de - Die Onlinesoftware zum Lesen und Schreiben im Usenet
Die Signatur läßt sich nach Belieben anpassen ;-)

Jeff Higgins - 16 May 2008 21:56 GMT
> RedGrittyBrick wrote:
>
[quoted text clipped - 6 lines]
> Is that a bad joke? There's nohting useful there. You don't even seem to
> have read my original question.

If it is a bad joke then it follows from a bad troubleshooting query.
No useful troubleshooting information in the OP.
Lew - 17 May 2008 01:06 GMT
>> RedGrittyBrick wrote:
>>
[quoted text clipped - 8 lines]
> If it is a bad joke then it follows from a bad troubleshooting query.
> No useful troubleshooting information in the OP.

To the OP: Why would you consider it a joke, much less a bad one?  It was the
single best piece of advice anyone here could have given you.

You want information, you have to give information.  It's all explained on the
referenced site.

Signature

Lew

Hakan - 18 May 2008 02:49 GMT
> If it is a bad joke then it follows from a bad troubleshooting query.
> No useful troubleshooting information in the OP.

I realise that my first post was somewhat cryptical. As it is, the
JTabbedPane became invalid when I added some content to the JPanels on
it while the JTabbedPane was already visible. Would I have found that on
that SSCE site?

Signature

Newsoffice.de - Die Onlinesoftware zum Lesen und Schreiben im Usenet
Die Signatur läßt sich nach Belieben anpassen ;-)

Andrew Thompson - 18 May 2008 03:36 GMT
>  ...As it is, the
> JTabbedPane became invalid when I added some content to the JPanels on
> it while the JTabbedPane was already visible. Would I have found that on
> that SS..

'C'

> ..CE site?

The answer is not 'on the site', but the answer may
have become apparent in the process of *making* an SSCCE.
Even if the answer did not become clear while making an
SSCCE, the final SSCCE is a convenient 'chunk of code'
that displays the problem for others to see.

This is explained in the page (which you have apparently
still not read).

--
Andrew T.
PhySci.org
Lew - 18 May 2008 03:55 GMT
>>  ...As it is, the
>> JTabbedPane became invalid when I added some content to the JPanels on
[quoted text clipped - 13 lines]
> This is explained in the page (which you have apparently
> still not read).

Additionally, even if making the SSCCE doesn't reveal the problem to you, it
is much better at communication of necessary information to those of whom you
request assistance, compared to not providing the necessary information.

Otherwise you disempower those who would help from doing so.  Is that what you
want, OP?

Signature

Lew

Jeff Higgins - 17 May 2008 09:45 GMT
>>> Why aren't the tabs in my JTabbedPane showing? I have a JTabbedPane with
>>> a number of JPanels placed on a JPanel in a JFrame, but the entire
[quoted text clipped - 4 lines]
> Is that a bad joke? There's nohting useful there. You don't even seem to
> have read my original question.

For a perfect example of the power of the SSCCE see the recent thread:
"Erasing a line" in this group.
Andrea Francia - 17 May 2008 12:48 GMT
>>> Why aren't the tabs in my JTabbedPane showing? I have a JTabbedPane
>>> with a number of JPanels placed on a JPanel in a JFrame, but the
[quoted text clipped - 4 lines]
> Is that a bad joke? There's nohting useful there. You don't even seem to
> have read my original question.

It is impossible to help you if you don't post some other information.
The question you made is too generic to help you.
SSCCE is a way, the best way, to post a query with the needed
information to be helped.

Take a look a the website they give you and repost your query.

Signature

Andrea Francia
http://code.google.com/p/remoted-list/ - Lazy loading lists through RMI.

Andrea Francia - 17 May 2008 12:50 GMT
> It is impossible to help you if you don't post some other information.
> The question you made is too generic to help you.
> SSCCE is a way, the best way, to post a query with the needed
> information to be helped.
There is another thing.
Often in the process of creating the SSCCE you discover the problem by
yourself.

Signature

Andrea Francia
http://code.google.com/p/remoted-list/ - Lazy loading lists through RMI.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.