简体   繁体   中英

Implementing window like “Eclipse About Window”

I want to ask you about:

  1. Which type is the "About" window displayed in Eclipse Juno 4.2 vía Help-->About Eclipse: is it JFrame , JDialog or another?
  2. How can I get the About window via code in Java? Because until now I couldn't obtain via code a similar window (with Maximize, Minimize buttons). Also remembering that this About window doesn't appear in the Windows Button Bar (so perhaps it's a JDialog ).

This is what the About window for Eclipse Indigo looks like (Juno is pretty much the same in look):

Eclipse Indigo关于Window

The Help>About window in Eclipse is not a Swing dialog at all. Like other parts of the Eclipse rich-client platform, it is built atop SWT.

The class is org.eclipse.ui.internal.dialogs.AboutDialog . It's a modal, resizable dialog, built atop a native window with dialog trim and a maximize/restore button.

In an RCP application, its text and image are specified in a *.product file. It's not intended to be instantiated directly outside the Eclipse codebase.

If you need to work in Swing, you could implement a similar window, using JFrame . If you have the option of building an SWT/RCP application, you could get this dialog for free, along with a huge, tasty menu of additional common high-level functionality.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM