26 comments

Great! We'll allow IDEA to run on 1.4.2 in the upcoming build.
Actually we are using 1.4.2-beta internally and it works just fine.

Best regards,
Vladimir Kondratyev
_____________________
JetBrains

kesh wrote:

Subj!!!


0

That's nice!

/kesh

"Vladimir Kondratyev" <vova@intellij.com> wrote in message
news:b6i25k$6fr$1@is.intellij.net...

Great! We'll allow IDEA to run on 1.4.2 in the upcoming build.
Actually we are using 1.4.2-beta internally and it works just fine.

>

Best regards,
Vladimir Kondratyev
_____________________
JetBrains

>

kesh wrote:

Subj!!!

>
>

>


0

Some usefull links for those who don't want to search:
;)
http://java.sun.com/j2se/1.4.2/index.html
http://java.sun.com/j2se/1.4.2/changes.html


Hey, great ! Thank you, that was what I was looking for, but was lazy to
look for... ;)

Guillaume


0

On Fri, 04 Apr 2003 12:47:35 +0200, Guillaume Laforge wrote:

>> Some usefull links for those who don't want to search: ;)
>> http://java.sun.com/j2se/1.4.2/index.html
>> http://java.sun.com/j2se/1.4.2/changes.html


Hey, great ! Thank you, that was what I was looking for, but was lazy to
look for... ;)


I see theres now a GTK2 theme ;) Anyone got any screenshots of this in
action? ( I'll probably download 1.4.2 anyway shortly.... )

0

good question. i remember, too, that some guys from sun said, they support a GTK2 theme in 1.4.2!!!

0

Indeed there seems to also be a new windows XP theme, is IDEA going to support that, or does anyone know if this is something 1.4.2 will automatically use when you're on XP?

0

I think that as long as you have the Windows LookAndFeel installed, it will
pick up that you are running XP and use it automagically.

N.

Robert S. Sfeir wrote:

Indeed there seems to also be a new windows XP theme, is IDEA going
to support that, or does anyone know if this is something 1.4.2 will
automatically use when you're on XP?



0

can i use the winXP theme under win2K/win98/win95???

0

do you have pictures from the XP lookAndFeel??? please show us some screenshots!!!

0


--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"





Attachment(s):
idea-xp.PNG
0

On Mon, 07 Apr 2003 14:31:21 +0400, Mike Aizatsky wrote:


Nice :)

Did someone say java apps looked ugly?


0

I don't know what you mean by "theme file and engine", but I can tell you the following:

The UIManager allows you to choose a Look And Feel:

javax.swing.UIManager public static?void?setLookAndFeel(javax.swing.LookAndFeel?newLookAndFeel)throws?UnsupportedLookAndFeelException

The most commonly used L&F is the MetalLookAndFeel (javax.swing.plaf.metal.MetalLookAndFeel).
You can derive this class to make your own L&F, like JGoodies or Kunststoff do.

Then, you can set the current theme to use for the current L&F, by calling:

javax.swing.plaf.metal.MetalLookAndFeel public static?void?setCurrentTheme(javax.swing.plaf.metal.MetalTheme?theme)

(In fact, you have to call this function before setting the L&F using the UIManager, as it is a static method that sets some environement variable)

You can do all this when you instanciate your JFrame, for example, but if you're planning to let the user change the L&F anytime while the swing application is running, you should implement a listener so that the whole GUI tree changes when L1F changes:

UIManager.addPropertyChangeListener(new UISwitchListener(getRootPane()));

with UISwitchListener:

protected class UISwitchListener implements PropertyChangeListener {

/**

  • The root of the GUI tree to update

*/
protected JComponent componentToSwitch;

/**

  • The constructor just collects a pointer to the root of the GUI tree

  • @param c the root of the GUI tree to update

*/
public UISwitchListener(JComponent c) {
componentToSwitch = c;
}

/**

  • We override this method to listen to changes. When a Look And Feel change

  • happens, we propagate to the entire GUI tree.

  • @param e The PropertyChangeEvent that tells what change happened

*/
public void propertyChange(PropertyChangeEvent e) {

String name = e.getPropertyName();

if (name.equals("lookAndFeel")) {

System.out.println("UISwitchListener lookAndFeel propertyChange");
SwingUtilities.updateComponentTreeUI(componentToSwitch);

componentToSwitch.invalidate();
componentToSwitch.validate();
componentToSwitch.repaint();
}
}
}


Et voila...I hope this has been usefull for some of you ;)
Dan/

0

The following concerning GTK L&F is on the Swing Forum, however, I'm
wondering where to find an appropriate file for the PATH_TO_THEME_FILE
-


START

First off, you can use any example. The code doesn't have to be changed at
all except to make it load the GTK look and feel. So, either specify it on
the command line:

-Dswing.defaultlaf="com.sun.java.swing.plaf.gtk.GTKLookAndFeel"

or in code:

UIManger.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");

Then, if you're running on a GTK system, change your theme to the one you
want. If you're not on a system running GTK, use the command line argument
to specify a theme file:

-Dswing.gtkthemefile="PATH_TO_THEME_FILE"

If you want to try a theme engine, the pixmap engine for example, try
looking for a GTK theme at themes.org. For example, I think the
mozilla-modern theme is a pixmap theme. To make sure, when you download one,
look at the source for the rc file. It should contain references to engine
"pixmap".

-


END


"dan" <jiveadmin@jetbrains.com> wrote in message
news:19164140.1049728399817.JavaMail.jrun@is.intellij.net...
I don't know what you mean by "theme file and engine", but I can tell you
the following:

The UIManager allows you to choose a Look And Feel:

javax.swing.UIManager public static void
setLookAndFeel(javax.swing.LookAndFeel newLookAndFeel)throws
UnsupportedLookAndFeelException

The most commonly used L&F is the MetalLookAndFeel
(javax.swing.plaf.metal.MetalLookAndFeel).
You can derive this class to make your own L&F, like JGoodies or Kunststoff
do.

Then, you can set the current theme to use for the current L&F, by calling:

javax.swing.plaf.metal.MetalLookAndFeel public static void
setCurrentTheme(javax.swing.plaf.metal.MetalTheme theme)

(In fact, you have to call this function before setting the L&F using the
UIManager, as it is a static method that sets some environement variable)

You can do all this when you instanciate your JFrame, for example, but if
you're planning to let the user change the L&F anytime while the swing
application is running, you should implement a listener so that the whole
GUI tree changes when L1F changes:

UIManager.addPropertyChangeListener(new UISwitchListener(getRootPane()));

with UISwitchListener:

protected class UISwitchListener implements PropertyChangeListener {

/**

  • The root of the GUI tree to update

*/
protected JComponent componentToSwitch;

/**

  • The constructor just collects a pointer to the root of the GUI

tree

  • @param c the root of the GUI tree to update

*/
public UISwitchListener(JComponent c) {
componentToSwitch = c;
}

/**

  • We override this method to listen to changes. When a Look And

Feel change

  • happens, we propagate to the entire GUI tree.

  • @param e The PropertyChangeEvent that tells what change happened

*/
public void propertyChange(PropertyChangeEvent e) {

String name = e.getPropertyName();

if (name.equals("lookAndFeel")) {

System.out.println("UISwitchListener lookAndFeel
propertyChange");
SwingUtilities.updateComponentTreeUI(componentToSwitch);

componentToSwitch.invalidate();
componentToSwitch.validate();
componentToSwitch.repaint();
}
}
}


Et voila...I hope this has been usefull for some of you ;)
Dan/


0

Any GTK screenshot then.... Surely someone uses Linux ????

---Trond

0

On Tue, 08 Apr 2003 11:36:37 +0000, Trond Andersen wrote:

Any GTK screenshot then.... Surely someone uses Linux ????


Sadly most apps I tried to run under 1.4.2 with the GTK theme crashed with
issues to do with the JMenuBar .... doh

0

Still no 1.4.2-beta support in 813?

0

On Tue, 22 Apr 2003 20:14:30 +0000, Michael Hoefer wrote:

Still no 1.4.2-beta support in 813?


Because 1.4.2 won't work due to various bugs/changes - which AFAIK have
recently been fixed but not released.

However, I was noticing that JUnitRunner and running my app barfed with
1.4.2 -under Idea- - outside there fine.

0

http://www.intellij.net/forums/thread.jsp?forum=22&thread=26836
vote for the bug(for sun it's a request of enhancement!!!), hopefully the fix it!!!!!!!

0

On Tue, 22 Apr 2003 20:14:30 +0000, Michael Hoefer wrote:

Still no 1.4.2-beta support in 813?


Has any one noticed strange font behaviour with 1.4.2? I'm noticing that
sometimes my fonts are huge, other times small... not sure whats causing
it, but I'm finding that any app I run under it, will either use large
fonts, or small fonts.... Right strange....

Mark

0

...but as Vlad says, Intellij is using it internally. Is there a way to trick idea into skipping the jdk version checking?

0

Michael Hoefer wrote:

Is there a way to trick idea into skipping the jdk version checking?


Your question sounds to me like "Is there a way to cut the safety belts of my car". I would understand you if you had no other choice, but since IDEA runs fine with 1.4.1 and the guys at JB have determined that the IDE is not acceptably stable under 1.4.2 I can't figure a reason to use 1.4.2 ]]>

regards,
dimiter

0

Please sign in to leave a comment.