On Sat, 2009-10-31 at 14:03 -0500, Thura wrote:
> I am writing a dialog, in which the "close" button is aligned to the
> left, like other gtk+ applications.
It's a HIG requirement.
More accurately, dialogs in GNOME user interfaces all have their common
case, go forward action being the right-most, while which button is set
as default (ie, what happens if you press Enter) depends on the
severity.
Anyway,
> But I haven't found a way how to do it.
Sounds like you want MessageDialog. It's easy enough to drive, but we
have some useful subclasses which make it even easier to Do The Right
Thing.
Have a look at QuestionMessageDialog:
http://java-gnome.sourceforge.net/4.0/doc/api/org/gnome/gtk/QuestionMessageDialog.html
or more likely WarningMessageDialog:
http://java-gnome.sourceforge.net/4.0/doc/api/org/gnome/gtk/WarningMessageDialog.html
[hm, that needs a screenshot. Anyone want to contribute?]
should do the trick for you.
Good luck!
AfC
Sydney
|