Re: open another jframe



Akki wrote:
Hi,


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

You create a new JFrame object with the new operator and then you call 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
.



Relevant Pages

  • Make a cloneable object
    ... how to use the clonemethod to create a deep copy of a ... JFrame object. ... I need to "duplicate" a JFrame containing a TextField and then to add other ...
    (comp.lang.java.gui)
  • Re: open another jframe
    ... On Jan 24, 11:48 pm, Knute Johnson ... Then I want to open another JFrame inwhich I show the plot of f. ... You create a new JFrame object with the new operator and then you call ...
    (comp.lang.java.gui)
  • Re: open another jframe
    ... How do I open another JFrame from one JFrame? ... The first JFrame is a command prompt. ... Where I want to write draw f. ... You create a new JFrame object with the new operator and then you call ...
    (comp.lang.java.gui)
  • open another jframe
    ... How do I open another JFrame from one JFrame? ... The first JFrame is a command prompt. ... Where I want to write draw f. ...
    (comp.lang.java.gui)
  • Re: Make a cloneable object
    ... > JFrame object. ... > Unfortunately JFrame doesn't support cloneability.. ... Cloneable, override cloneas you want or by ...
    (comp.lang.java.gui)