Article View: borland.public.jbuilder.java.swing
Article #1211jdk 1.4.2 - 1.4.1 differences help
From: Sven Goetgeluck
Date: Tue, 17 Feb 2004 21:04
Date: Tue, 17 Feb 2004 21:04
41 lines
2430 bytes
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
Technical Details
Message-ID:
<403281ec$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,58ffc3ed8cc2ac58,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-02-17 13:10:18 PST From: "Sven Goetgeluck" <sven.goetgeluck@pandora.be> Newsgroups: borland.public.jbuilder.java.swing Subject: jdk 1.4.2 - 1.4.1 differences help Date: Tue, 17 Feb 2004 22:04:44 +0100 Lines: 43 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.224.11.244 Message-ID: <403281ec$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077051884 213.224.11.244 (17 Feb 2004 13:04:44 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail