🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Javahelp on JOptionPane

#676
From: Bart Jourquin
Date: Fri, 14 Jan 2005 08:03
27 lines
1679 bytes
Hi all,

I use JavaHelp in my app to create a context sensitive help system. I've 
choosen to implement it by means of the "help" or "f1" key using 
HelpBroker.enableHelpKey method. This work perfectly well as long as I 
can have access to the component that has the focus.

How can I do it for JOptionPane.showXXX methods?

Example for a simple plaf chooser:

String selectedValue = (String) JOptionPane.showInputDialog(null,
         "Look & Feel to use:",
         APPNAME,
         JOptionPane.INFORMATION_MESSAGE, null, lfNames, 
lfNames[currentLFIndex]);

if (selectedValue != null) {
...
{


How can I associate a HelpBroker.enableHelpKey(...) on such a pane?

Many thanks

Bart
Technical Details
Message-ID: <41e77cda$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,120ee6ce4cc4028f,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 14 Jan 2005 09:03:40 +0100
From: Bart Jourquin <bart.jourquin@fucam.ac.be>
User-Agent: Mozilla Thunderbird 0.9 (X11/20041127)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Javahelp on JOptionPane
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.190.244.18
Message-ID: <41e77cda$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105689818 193.190.244.18 (14 Jan 2005 00:03:38 -0800)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail