how can i dispose a JFrame from keyboard.???
disposing a jframe from keyboard
Collapse
X
-
You are supposed to guess that they want to close the JFrame using a keyevent.Originally posted by JosAHI don't understand your question: a JFrame is supposed to be displayed on your
screen, not on your keyboard. Did it fall off?
kind regards,
Jos
P.S If the JFrame falls of my screen, it won"t fall on my keyboard too. They are about 10 cm apart.Comment
-
I have a laptop so if a JFrame falls off my screen it slides down on the keyboard;Originally posted by r035198xYou are supposed to guess that they want to close the JFrame using a keyevent.
P.S If the JFrame falls of my screen, it won"t fall on my keyboard too. They are about 10 cm apart.
if my keyboard happens to be a bit slippery it'll slide even further and drops down
off the table in my lap *yuck*. I'll go and implement a fast SuperGlue class now ...
kind regards,
Jos ;-)Comment
-
-
Did you read my reply above?Originally posted by pankajsI was meant to say that there is method setCloseDefault CloseOperation( DISPOSE_ON_CLOS E); ie. when we click close at right top it closed.My ques. was how can it be done by keyevent??????
i couldn't find any solutn.. Please..Comment
-
Comment
Comment