🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
8 messages
8 total messages Started by Sven Goetgeluck Tue, 17 Feb 2004 21:04
jdk 1.4.2 - 1.4.1 differences help
#1211
Author: Sven Goetgeluck
Date: Tue, 17 Feb 2004 21:04
41 lines
2430 bytes
Hello,

when compiling and running with jdk 1.4.2 (or higher) the look is totally
different then when i use 1.4.1 fe mouse over on buttons seems different,
the look of the radiobuttons is different , how can i solve this

fe how i call a button
 trashbutton.setIcon(new ImageIcon(images.getString("TRASH20")));
    trashbutton.setPressedIcon(new
ImageIcon(images.getString("TRASH20_IN")));
    trashbutton.setRolloverIcon(new
ImageIcon(images.getString("TRASH20_OUT")));
    trashbutton.setDisabledIcon(new
ImageIcon(images.getString("TRASH20_DIS")));
    trashbutton.setToolTipText(recources.getString("REMOVE_NODE"));
    trashbutton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        EditRemoveMenuItem_actionPerformed(e);
      }
    });

    trashbutton.setFocusPainted(false);
    trashbutton.setBorderPainted(false);
    trashbutton.setMaximumSize(new Dimension(40, 40));
    trashbutton.setMinimumSize(new Dimension(40, 40));
    trashbuttons.etPreferredSize(new Dimension(40, 40));
    trashbutton.setBackground(new Color(15, 40, 70));
    trashbutton.setForeground(new Color(15, 40, 70));


it seems when i go with the mouse over the buttons in jdk 1.4.2 the
backgroundcolor disapears and i need to set for mouseover also a color
or are there other parameters to set
there are also border that appears around the buttons on jdk 1.4.2 and not
on lower versions

can i find any solutions about this on the net?



thanks Sven
Re: jdk 1.4.2 - 1.4.1 differences help
#1212
Author: pnichols
Date: Tue, 17 Feb 2004 22:51
17 lines
1688 bytes
Sven Goetgeluck wrote:

> Hello,
> 
> when compiling and running with jdk 1.4.2 (or higher) the look is totally
> different then when i use 1.4.1 fe mouse over on buttons seems different,
> the look of the radiobuttons is different , how can i solve this
> 
Just a hunch, but how you are handling buffering on each version?

Next, you could force a Look and Feel on the app. There are plenty available
for free. Check out sourceforge.net for Java Look and Feels that look much
better than the native ones shipped with the JSDKs.

I would bet this is on XP right? Yes the L&F were changed in 1.4.2 from
1.4.1 for XP. AFAIK, I do not think the Metal L&F was changed at all, nor
the standard Windows Look and Feels, but for XP it definitely was.
Re: jdk 1.4.2 - 1.4.1 differences help
#1213
Author: Sven Goetgeluck
Date: Wed, 18 Feb 2004 08:55
34 lines
2069 bytes
hi ,

yes this is my problem
allready tried the swing.noxp param but it doesn't work
wich l&f doe i use then
are other l&f stable on not because have never tried implementing one


sven


"pnichols" <paul@comp.net> schreef in bericht
news:403298b2@newsgroups.borland.com...
> Sven Goetgeluck wrote:
>
> > Hello,
> >
> > when compiling and running with jdk 1.4.2 (or higher) the look is
totally
> > different then when i use 1.4.1 fe mouse over on buttons seems
different,
> > the look of the radiobuttons is different , how can i solve this
> >
> Just a hunch, but how you are handling buffering on each version?
>
> Next, you could force a Look and Feel on the app. There are plenty
available
> for free. Check out sourceforge.net for Java Look and Feels that look much
> better than the native ones shipped with the JSDKs.
>
> I would bet this is on XP right? Yes the L&F were changed in 1.4.2 from
> 1.4.1 for XP. AFAIK, I do not think the Metal L&F was changed at all, nor
> the standard Windows Look and Feels, but for XP it definitely was.
>
Re: jdk 1.4.2 - 1.4.1 differences help
#1218
Author: pnichols
Date: Wed, 18 Feb 2004 15:36
19 lines
1517 bytes
Sven Goetgeluck wrote:

> hi ,
> 
> yes this is my problem
> allready tried the swing.noxp param but it doesn't work
> wich l&f doe i use then
> are other l&f stable on not because have never tried implementing one
> 
> 
> sven
> 
I use the kunststoff l&f is pretty popular and is free. I use it in several
of my Swing projects. It seems stable enough and you can theme your control
with kunststoff as well.

Look here for a good list of the look and feels available.

http://www.javootoo.com/
Re: jdk 1.4.2 - 1.4.1 differences help
#1220
Author: Gillmer J. Derge (TeamB)
Date: Wed, 18 Feb 2004 15:40
17 lines
1757 bytes
Sven Goetgeluck wrote:
> allready tried the swing.noxp param but it doesn't work

How did you set it?  I just tried a quick test, and it worked fine.  In 
my run configuration, I added "-Dswing.noxp=true" as a VM parameter.

> wich l&f doe i use then
> are other l&f stable on not because have never tried implementing one

IMHO you'd be better off getting the buttons to work with the XP look 
and feel instead of switching to a different one.  The XP look and feel 
is supposed to be a good thing.  Your application will look like a 
normal Windows application.  Switching to a different look and feel is 
just avoiding the issue.

-- 
Gillmer J. Derge (TeamB)
Re: jdk 1.4.2 - 1.4.1 differences help
#1221
Author: Sven Goetgeluck
Date: Wed, 18 Feb 2004 16:07
30 lines
2140 bytes
Hi,
the reason is that the background of my menubarbuttons is set to another
color then the gray style
the buttons look fine when adding them but when i do a mouse over in stead
of displaying the onmouseover images
the applications paint some ugly borders around it


sven


"Gillmer J. Derge (TeamB)" <spam@gillmerderge.com> schreef in bericht
news:40338768@newsgroups.borland.com...
> Sven Goetgeluck wrote:
> > allready tried the swing.noxp param but it doesn't work
>
> How did you set it?  I just tried a quick test, and it worked fine.  In
> my run configuration, I added "-Dswing.noxp=true" as a VM parameter.
>
> > wich l&f doe i use then
> > are other l&f stable on not because have never tried implementing one
>
> IMHO you'd be better off getting the buttons to work with the XP look
> and feel instead of switching to a different one.  The XP look and feel
> is supposed to be a good thing.  Your application will look like a
> normal Windows application.  Switching to a different look and feel is
> just avoiding the issue.
>
> -- 
> Gillmer J. Derge (TeamB)
Re: jdk 1.4.2 - 1.4.1 differences help
#1223
Author: pnichols
Date: Wed, 18 Feb 2004 20:31
24 lines
1997 bytes
Gillmer J. Derge (TeamB) wrote:

> Sven Goetgeluck wrote:
>> allready tried the swing.noxp param but it doesn't work
> 
> How did you set it?  I just tried a quick test, and it worked fine.  In
> my run configuration, I added "-Dswing.noxp=true" as a VM parameter.
> 
>> wich l&f doe i use then
>> are other l&f stable on not because have never tried implementing one
> 
> IMHO you'd be better off getting the buttons to work with the XP look
> and feel instead of switching to a different one.  The XP look and feel
> is supposed to be a good thing.  Your application will look like a
> normal Windows application.  Switching to a different look and feel is
> just avoiding the issue.
> 
Gilmer, 

If he uses the kunststoff L&F is has a Windows XP L&F in it as well, that is
ACTUALLY BETTER than the native Sun L&F for Windows XP.

The advantage for him will be that the buttons can have a theme applied to
them, which SHOULD resolve his image issues.
Re: jdk 1.4.2 - 1.4.1 differences help
#1224
Author: Sven Goetgeluck
Date: Thu, 19 Feb 2004 08:49
36 lines
2528 bytes
Hi,

my buttons have size 20,20 and my  menubar is 40,40 , i set the background
of my buttons to the same of the menubar
but now on rol-over xp style repaints the border in an ugly grey or windows
selected color with an border around

sven
"pnichols" <paul@comp.net> schreef in bericht
news:4033c961@newsgroups.borland.com...
> Gillmer J. Derge (TeamB) wrote:
>
> > Sven Goetgeluck wrote:
> >> allready tried the swing.noxp param but it doesn't work
> >
> > How did you set it?  I just tried a quick test, and it worked fine.  In
> > my run configuration, I added "-Dswing.noxp=true" as a VM parameter.
> >
> >> wich l&f doe i use then
> >> are other l&f stable on not because have never tried implementing one
> >
> > IMHO you'd be better off getting the buttons to work with the XP look
> > and feel instead of switching to a different one.  The XP look and feel
> > is supposed to be a good thing.  Your application will look like a
> > normal Windows application.  Switching to a different look and feel is
> > just avoiding the issue.
> >
> Gilmer,
>
> If he uses the kunststoff L&F is has a Windows XP L&F in it as well, that
is
> ACTUALLY BETTER than the native Sun L&F for Windows XP.
>
> The advantage for him will be that the buttons can have a theme applied to
> them, which SHOULD resolve his image issues.
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads