Re: open another jframe
- From: RedGrittyBrick <RedGrittyBrick@xxxxxxxxxxxxx>
- Date: Fri, 25 Jan 2008 10:51:22 +0000
Akki wrote:
On Jan 24, 11:48 pm, Knute Johnson <nos...@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Akki wrote:Hi,You create a new JFrame object with the new operator and then you call
How do I open another JFrame from one JFrame ?
The first JFrame is a command prompt. Where I want to write draw f(x).
Then I want to open another JFrame inwhich I show the plot of f(x).
TIA,
Darth
the setVisible() method on that object with an argument of true.
--
Knute Johnson
email s/nospam/knute/
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDem
Thanks ! I it worked. But now when I close the second JFrame window,
the first one closes too.
How do I decouple them ?
f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f2.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
.
- References:
- open another jframe
- From: Akki
- Re: open another jframe
- From: Knute Johnson
- Re: open another jframe
- From: Akki
- open another jframe
- Prev by Date: Cheap European made cigarettes !
- Next by Date: European Cigarettes - European made cigarettes
- Previous by thread: Re: open another jframe
- Next by thread: javafx + RCP integration - help pls
- Index(es):
Relevant Pages
|
|