B
bruces1
Hi all,
I would like to use one particular class from Mustang in my app:
JTabbedPane. The latest version allows custom components to be added to
the tabs themselves.
I found a thread in the JBuilder group
(http://groups.google.com/group/borl...292b6f5e109/63e00e6dd9b59a40#63e00e6dd9b59a40)
That pointed me in the right direction. I imported the JTabbedPane
source into my project and compiled my app, which includes a call to
one of the new methods of the Mustang version,
JTabbedPane.setTabComponentAt().
The resulting class file is output in the same place as the rest of my
classes, and packaged into a .jar file .
However, at runtime, with the jar file in the classpath, Java seems to
use the 1.5 version of JTabbedPane from the JRE:
java.lang.NoSuchMethodError:
javax.swing.JTabbedPane.setTabComponentAt(ILjava/awt/ComponentV
Does this sound correct? If so, how can I "override" the 1.5 version
with the Mustang version when running the app?
I have posted a similar question in the JBuilder group last week, but
over the weekend I figured it's more of a general Java question.
Thank you,
Bruce Sutherland.
I would like to use one particular class from Mustang in my app:
JTabbedPane. The latest version allows custom components to be added to
the tabs themselves.
I found a thread in the JBuilder group
(http://groups.google.com/group/borl...292b6f5e109/63e00e6dd9b59a40#63e00e6dd9b59a40)
That pointed me in the right direction. I imported the JTabbedPane
source into my project and compiled my app, which includes a call to
one of the new methods of the Mustang version,
JTabbedPane.setTabComponentAt().
The resulting class file is output in the same place as the rest of my
classes, and packaged into a .jar file .
However, at runtime, with the jar file in the classpath, Java seems to
use the 1.5 version of JTabbedPane from the JRE:
java.lang.NoSuchMethodError:
javax.swing.JTabbedPane.setTabComponentAt(ILjava/awt/ComponentV
Does this sound correct? If so, how can I "override" the 1.5 version
with the Mustang version when running the app?
I have posted a similar question in the JBuilder group last week, but
over the weekend I figured it's more of a general Java question.
Thank you,
Bruce Sutherland.