🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #842

Re: Action Problem

#842
From: Tor Iver Wilhelmsen [TeamB]
Date: Mon, 27 Sep 2004 06:50
13 lines
1250 bytes
"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: <ufz54kxy7.fsf@broadpark.no>
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
References: <41577352@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,4314440d03110928
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Sender: Tor Iver Wilhelmsen@TIWILHEL
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Action Problem
References: <41577352@newsgroups.borland.com>
From: tor.iver.wilhelmsen@broadpark.no (Tor Iver Wilhelmsen [TeamB])
Date: 27 Sep 2004 08:50:08 +0200
Message-ID: <ufz54kxy7.fsf@broadpark.no>
Lines: 13
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 80.203.79.252
X-Trace: newsgroups.borland.com 1096267455 80.203.79.252 (26 Sep 2004 23:44:15 -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