Article View: borland.public.jbuilder.java.swing
Article #843Re: Action Problem
From: Guillermo
Date: Tue, 28 Sep 2004 15:27
Date: Tue, 28 Sep 2004 15:27
17 lines
1421 bytes
1421 bytes
Thank you ! "Tor Iver Wilhelmsen [TeamB]" <tor.iver.wilhelmsen@broadpark.no> wrote in message news:ufz54kxy7.fsf@broadpark.no... > "Guillermo" <gnajar@gnsis.net> writes: > > > putValue(Action.SMALL_ICON, "icons/db insert.bmp"); > > This should be an actual Icon, not just a file name. Use ImageIcon to > load the bitmap. > > > putValue(Action.MNEMONIC_KEY, "A"); > > Should be a KeyEvent, not a String. > > See the docs for javax.swing.Action, the descriptions of the constants > say what type of object should be used as the value.
Technical Details
Message-ID:
<415982a0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mailReferences:
<41577352@newsgroups.borland.com> <ufz54kxy7.fsf@broadpark.no>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,4314440d03110928 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Guillermo" <gnajar@gnsis.net> Newsgroups: borland.public.jbuilder.java.swing References: <41577352@newsgroups.borland.com> <ufz54kxy7.fsf@broadpark.no> Subject: Re: Action Problem Date: Tue, 28 Sep 2004 11:27:35 -0400 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 200.50.58.250 Message-ID: <415982a0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096385184 200.50.58.250 (28 Sep 2004 08:26:24 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail