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?
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?
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:
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:
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".
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:
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....
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
]]>
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:
That's nice!
/kesh
"Vladimir Kondratyev" <vova@intellij.com> wrote in message
news:b6i25k$6fr$1@is.intellij.net...
>
>
>
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
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
I see theres now a GTK2 theme ;) Anyone got any screenshots of this in
action? ( I'll probably download 1.4.2 anyway shortly.... )
good question. i remember, too, that some guys from sun said, they support a GTK2 theme in 1.4.2!!!
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?
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:
can i use the winXP theme under win2K/win98/win95???
do you have pictures from the XP lookAndFeel??? please show us some screenshots!!!
--
Best regards,
Mike Aizatsky.
-
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
Attachment(s):
idea-xp.PNG
On Mon, 07 Apr 2003 14:31:21 +0400, Mike Aizatsky wrote:
Nice :)
Did someone say java apps looked ugly?
looks really nice. i've found more screenshots here: http://www.ammai.com/modules.php?op=modload&name=News&file=article&sid=41&mode=thread&order=0&thold=0
Windows XP theme screenshots:
http://www.ammai.com/images/SwingXP1.png
http://www.ammai.com/images/SwingXP2.png
http://www.ammai.com/images/SwingXP4.png
http://www.ammai.com/images/SwingXP3.png
http://www.ammai.com/images/SwingXP6.png
GTK+ screenshots:
http://www.gnome.org/~uraeus/bumblebee.png
http://www.gnome.org/~uraeus/bluecurve.png
http://www.gnome.org/~uraeus/limebubble.png
BTW, see this:
http://www.intellij.net/forums/thread.jsp?forum=22&thread=26808&tstart=0&trange=15
To run with bluecurve L&F on Windows, is there a 'theme file' that I need?
If so, where can I download it?
Also, can some one explain the difference between a "theme file" and a
"theme engine"
Thanks,
Ted Hill
"dan" <jiveadmin@jetbrains.com> wrote in message
news:15441752.1049715191962.JavaMail.jrun@is.intellij.net...
>
>
>
>
>
>
http://www.intellij.net/forums/thread.jsp?forum=22&thread=26808&tstart=0&tra
nge=15
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/
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/
Any GTK screenshot then.... Surely someone uses Linux ????
---Trond
On Tue, 08 Apr 2003 11:36:37 +0000, Trond Andersen wrote:
Sadly most apps I tried to run under 1.4.2 with the GTK theme crashed with
issues to do with the JMenuBar .... doh
Still no 1.4.2-beta support in 813?
On Tue, 22 Apr 2003 20:14:30 +0000, Michael Hoefer wrote:
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.
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!!!!!!!
On Tue, 22 Apr 2003 20:14:30 +0000, Michael Hoefer wrote:
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
...but as Vlad says, Intellij is using it internally. Is there a way to trick idea into skipping the jdk version checking?
Michael Hoefer wrote:
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
http://www.intellij.net/forums/thread.jsp?forum=22&thread=26836