Popups and Dialogs

  • Thread starter Dirk Bruere at NeoPax
  • Start date
K

Knute Johnson

Dirk said:
I want to do a popup keyboard on an app.
Using Dialog box works fine, except I don't want the title bar - I'll
close it using a dedicated button. Any way of suppressing the title bar,
or alternative neat way of doing this?

Use a JWindow instead of a Dialog box.
 
D

Dirk Bruere at NeoPax

Knute said:
Use a JWindow instead of a Dialog box.
Can't find that on Netbeans. Any reason for that?
Also, I want to alter the text on each key depending on whether
shift(lock) is active or not. Which means (apparently) calling repaint()
on each key in turn when shift is pressed. Any shortcuts for that?

--
Dirk

http://www.transcendence.me.uk/ - Transcendence UK
http://www.theconsensus.org/ - A UK political party
http://www.onetribe.me.uk/wordpress/?cat=5 - Our podcasts on weird stuff
 
K

Knute Johnson

Dirk said:
Can't find that on Netbeans. Any reason for that?

Don't use it so I have no clue but I find that very surprising.
Also, I want to alter the text on each key depending on whether
shift(lock) is active or not. Which means (apparently) calling repaint()
on each key in turn when shift is pressed. Any shortcuts for that?

So you are writing an on screen keyboard that requires somebody to press
the CapsLock key? Why don't you just put the CapsLock key on your on
screen keyboard? Or if this is a windows project, just use the really
nice one that comes with the OS.

If you really need to trap keystrokes for non-input components, take a
look at InputMap and the related tutorials.
 
M

Mark Space

Dirk said:
Can't find that on Netbeans. Any reason for that?

At some point, you have to actually learn to program. Click on
New->Jform in NetBeans to make a new JFrame. Then when the view comes
up, click on the Source button, scroll to the start of the class
definition, double click on the world "JFrame" to select the whole word,
and type JWindow.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Official Java Classes 10
Can an Applet beep? 4
Sorting a JList 4
Free keyboard applet 5
JMF? 21
File over network timeout 3
Delay 2
ListModel name 10

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top