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

Importing classes from Mustang

1 view
Skip to first unread message

bru...@gmail.com

unread,
Apr 20, 2006, 10:03:11 PM4/20/06
to
Hi all,

I would like to use one particular new class from Mustang in my
project: JTabbedPane. The latest version allows custom components to be
used on the tabs themselves.

I found this thread:
http://groups.google.com/group/borland.public.jbuilder.ide/browse_thread/thread/e20eb135c69cf9f9/de255e5aaa66ee29?lnk=st&q=%22import+source+wizard%22+mustang&rnum=1#de255e5aaa66ee29

where Bill Joy suggests using the Import Class Wizard to achieve what I
want. Using this wizard, I was able to compile my code that uses the
JTabbedPane.setComponentAt() method (a new method in Mustang) without
errors. In my output directory, the JTabbedPane.class and its inner
classes show up in /javax/swing as expected.

However, at runtime, Java seems to be using the original 1.5 version of
JTabbedPane:

java.lang.NoSuchMethodError:
javax.swing.JTabbedPane.setTabComponentAt(ILjava/awt/Component;)V

In JBuilder, how can I configure Java to use the newly compiled version
of the class at runtime?

Thank you,

Bruce Sutherland.

0 new messages