Hyperlinks and JXFrame
long time and no commit ;) I'm a bit too busy with some projects all coming
Anyway I am writing a prototype for an application using SwingX mostly and
had a couple of minor issues:
1. The hyperlink doesn't respect enabled/disabled state correctly and
doesn't mutate when the action to which it is bound is modified. I looked
into the code and it seems to me that it is a mistake to base this widget on
a label rather than on an abstract button. So I placed into my incubator
directory (vprise/candy) a JHyperlink class that looks exactly the same but
is based on JButton and thus has better support for lots of the features
that abstract button brings to the table.
Is there a reason I can't see for choosing JLabel?
2. I complained about this ages ago but this has become really annoying.
Someone placed a pack() call is JXFrame setVisible... This is REALLY bad for
any application that wants to persist its size and position. Pack produces a
huge window with my UI... There has to be a way to remove this, I would just
avoid JXFrame but I want the status bar ;)
Anyway Richard I recall you had great code for persisting Window positions
and I see some of it in SwingX why not place the code to persist the Window
positions into the java.util.prefs repository into the WindowUtils class and
remove the pack() call?