GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes Problem to show the screen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem to show the screen" Watch "Problem to show the screen" New topic
Author

Problem to show the screen

swarna latha
Greenhorn

Joined: Jun 22, 2007
Posts: 15
Hi ,

For example : one screen if i do action performe on one component i can open screen .After open that screen in my requirement i dont access before screen.

I have used Jframe for creation of screens.
In my code if i try to click on before screen component which i have used to open for other screen, that screen will get enable and already opend screen going back of that screen.But in my requirement that should be visible .first screen should go back.

java i cant able to find out.

If any one knows the solution please help me.

Thanks and regards
Swarna
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

If I understand your requirement and language correctly, what you want is a modal window. Take a look at the JDialog. JOptionPane also provides many static methods to achieve the same functionality. Typically they take the form of JOptionPane.showXXXDialog(args....). Take a look at the examples in the API.
Best of luck.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
swarna latha
Greenhorn

Joined: Jun 22, 2007
Posts: 15
Hi thanks for reply,

I coudnt give correct explanation.

Ex: I have designed one screen with the name( list). That have new button.

If i click that new button .Create(This is another class) screen will open.

Again if i click new button of list class create screen will go back of list screen.

But in my requirement if i try to click any thing in list class.create class should apear first.that wont go back.

In create class in window opened i am trying to disable the list class using that list class object.
But its not happening.

Hope now you may understand little on my problem.

If you know please suggest me on this.

Thanks and regards
K.Swarna Latha
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

Like I said before take a look at JDialog and the JOptionPane API.
You will find what you want there.
 
jQuery in Action, 2nd edition
 
subject: Problem to show the screen