Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JTabbedPane problems

1 view
Skip to first unread message

Alberto Avila

unread,
Apr 23, 1998, 3:00:00 AM4/23/98
to

I am having problems using the JTabbedPane with
VC2.5 DBDE (I know this should be posted in
another newsgroup but my news server does not
carry it yet!)

The problems I am seeing are:

1. When I drop a JPanel into the JTabbedPane,
VC will generate the following statement:

jTabbedPane1.add(jPanel1);

when what I need it to do is:

jTabbedPane1.addTab("Panel 1", jPanel1);

2. If I manually change this and file is re-parsed, VC will
treat the panels as part of the main frame and
no longer add them to the tabbed pane.

3. I am also seeing a problem with the
setSelectedIndex, and it is due to call to this
method being performed before the tab panels
are even added to the tabbed pane, so
the index is out of range. This one I can get
around easily by manually calling the method elsewhere.

Thanks for any input you may have,

alberto

0 new messages