Re: Linux/X-Windows unable to set focus on a modal form (Consulting $ anyone)



caultonpos wrote:
On Jul 5, 12:56 pm, Knute Johnson <nos...@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:
caultonpos wrote:
On Jul 4, 3:51 pm, Knute Johnson <nos...@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:
caultonpos wrote:
It appears whenever a modal window is opened on Linux X-Windows the
focus is stolen from the window and you CANNOT use the keyboard or any
peice of code to return focus to the form - let alone set the focus in
the textbox.
This is not just for my modal forms but for something as fundamental
as JOptionPane or simple code like this:
JFileChooser chooser = new JFileChooser();
if (chooser.showOpenDialog(parentComponent) ==
JFileChooser.APPROVE_OPTION) {
}
From trolling through posts I can see no answers which is really sad
for Linux good for Microsoft I guess. How can we deploy on Linux if
you are forced to get carpal tunnel clicking on every form with the
mouse ?
I would be willing to pay some consulting dollars to get this
resolved.
Greg
Either you are not explaining your self adequately or you've got some
odd problem. If I open a JFileChooser dialog on XP or Fedora 9 I can
close it very easily with the escape key. On both, focus is returned to
the frame that opened the dialog and I can continue to maneuver with the
keyboard.
However, I am happy to consult. Please remit a large sum of cash and
you will definitely get my full attention to your problem :-).
--
Knute Johnson
email s/nospam/knute2008/
- Show quoted text -
Its not closing it that is the issue, it is getting focus on it
without the mouse.
On what the modal dialog?

Have a look athttp://www.patientos.org/demo.htm
login with admin/admin and press the Import button
you will notice you cannot type or use the keyboard until you use the
mouse.
I think you should do as Andrew suggests and post an SSCCE.

--

Knute Johnson
email s/nospam/knute2008/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access- Hide quoted text -

- Show quoted text -

I already posted an short example

JFileChooser chooser = new JFileChooser();
if (chooser.showOpenDialog(parentComponent) ==
JFileChooser.APPROVE_OPTION) {
}

The JFileChooser shows the dialog to browse for files - but unlike
windows the dialog has no focus - you must click on it to do anything.

Perhaps it does not fail on a local linux box but I am using NXClient
- the applet on demo.htm fires up NX and you can see for yourself.

Not sure how else you are going to see the issue without spending a
lot of time setting up a Swing app on a remote linux desktop, setting
on Nx and connecting to it...

I don't like having my time wasted. I wouldn't have answered you or tried to duplicate your problem on my Linux and Windows machines if I had known that you were using some sort of remote access software that I don't own.

I suggest if you need assistance in the future you completely describe your problem or use a different name!

--

Knute Johnson
email s/nospam/knute2008/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.