Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.22 seconds.

  1. Replies
    5
    Views
    2,733

    Re: Jframe title setting question

    Correction- I didn't use anything, that's just code I copied from the JDK source. Presumably, the firePropertyChange() method is called to generate a PropertyChangeEvent, which will be caught by any...
  2. Replies
    5
    Views
    2,733

    Re: Jframe title setting question

    Use the constructor if you know the title at time you're creating a JFrame (which will be most cases, which is probably why it's provided. Use setTitle() if you have to set or change the title after...
  3. Replies
    5
    Views
    2,733

    Re: Jframe title setting question

    tl;dr version: there is no real difference. One calls the constructor, another calls the setTitle() method. They both go up to Frame, which sets its title variable.

    Look at the code for JFrame...
Results 1 to 3 of 3