A community for students.
Here's the question you clicked on:
 0 viewing
mas_gh90
 3 years ago
Hi all dears, can any one tell me if it is possible to close a frame in java or not.if yes ,how is it possible?
mas_gh90
 3 years ago
Hi all dears, can any one tell me if it is possible to close a frame in java or not.if yes ,how is it possible?

This Question is Closed

mas_gh90
 3 years ago
Best ResponseYou've already chosen the best response.0Hi! thanks for your attention!You know my problem is that as I make a frame in java (a class that extends Frame not JFrame)I cannot get the window close with the x button on the title bar!if it was JFrame I could use setDefaultCloseOperation() but now it is not possible:(I was looking for a way :(

Tomas.A
 3 years ago
Best ResponseYou've already chosen the best response.1why dont you use JFrame instead?

mas_gh90
 3 years ago
Best ResponseYou've already chosen the best response.0I know!I did this!but I was curious to know the answer!you know it seems strange!anyway thanks :)

Tomas.A
 3 years ago
Best ResponseYou've already chosen the best response.1i found something after googling http://www.roseindia.net/java/example/java/awt/AwtCloseButtonEvent.shtml

Tomas.A
 3 years ago
Best ResponseYou've already chosen the best response.1you can also look at JFrame source code method and see how it's done there

mas_gh90
 3 years ago
Best ResponseYou've already chosen the best response.0a thousands of thanks!It was really nice and helpful!I got it! =))

mas_gh90
 3 years ago
Best ResponseYou've already chosen the best response.0can u help me with the question I asked in the following link , I need someone's help really: http://openstudy.com/study#/updates/4fa624bce4b029e9dc35e3cb

Tomas.A
 3 years ago
Best ResponseYou've already chosen the best response.1i don't have an idea what reflections is

mas_gh90
 3 years ago
Best ResponseYou've already chosen the best response.0oh!=( anyway thanks again dear friend!=)
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.