Re: Weird window close behavior



Andrew Thompson wrote:
Lew wrote:
...
frame.getContentPane().add(new JLabel("hi"));

Huhh?!? Lew, writing one *iota* of code to
support Java <1.5* JREs?

Is this..
- an oversite?**
- an(other) imposter?
- an alternate universe?

* See the new features for Swing in 1.5.
<http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#swing>

** I am constantly having to recheck my 1.5+
code for calls to getContentPane()!

Well, there are two factors at work. One, I was quoting the OP's code, so it really wasn't my fault. Two, I am not nearly as adept with Swing as you are.

I wouldn't normally label a label "hi", either.

What should actually amaze you is that I had anything useful to say about Swing programming at all.

--
Lew
.



Relevant Pages

  • Drop and Add
    ... Drop the bad features, add / keep the good ones. ... List the mechanics that go to make up a swing. ... then learn to execute it in sync with the next one, repeat this process ...
    (rec.sport.golf)
  • Re: Metronomes, revisited
    ... The same features not too long ago cost ... tempo to wherever you want to swing, ... If you can find something better for this price, by all means, let us ...
    (rec.music.makers.guitar.jazz)
  • Re: Swing, SWT oder was?
    ... Und jeder scheint SWT dem Swing vorzuziehen. ... Ist es denn wirklich sehr viel schneller als Swing? ... Die Entscheidung für SWT fiel nicht wegen irgendwelcher spektakulärer Features. ...
    (de.comp.lang.java)