javax.swing.GroupLayout in NodeDialogPane

Hi!

I've a little question about javax.swing.GroupLayout.

I've done a complex NodeDialog Window for my Node.
It's written and tested in Linux and it works very fine.

My Node dialog extends the NodeDialogPane and uses serval javax.swing.GroupLayout-Objects.
In Linux everything works well.

Today I wanted to test it in windows just to see if it works.
But in windows KNIME complains about javax.swing.GroupLayout.
It's red underlined if I open the source.
Error: javax.swing.GroupLayout cannot be resolved to a type

What I am doing wrong? In linux it works fine. But in windows the same code don't work.

Thanks for your hints.

imax.

imax wrote:
Today I wanted to test it in windows just to see if it works.
But in windows KNIME complains about javax.swing.GroupLayout.
It's red underlined if I open the source.
Error: javax.swing.GroupLayout cannot be resolved to a type

What I am doing wrong? In linux it works fine. But in windows the same code don't work.


I suppose, you are using the wrong JDK version. GroupLayout was introduced in Java 6 and if you are using Java 5 this error will occur. Try to select a Java 6 JDK via Window->Preferences->Java->Installed JREs and make it the default one.

Regards,

Thorsten

Thank you thor,

This solved my problem.

Additionally i've done the following step:
Project -> Properties -> Java Build Path -> Librarys -> Add Library... -> jre1.6 library.

That works for me.

Greetings,
imax.