Available Methods
- readAndDispatch ( )
- sleep ( )
- getCurrent ( )
- getDefault ( )
- dispose ( )
- asyncExec ( )
- syncExec ( )
- getSystemColor ( )
- isDisposed ( )
- timerExec ( )
- update ( )
- getBounds ( )
- getMonitors ( )
- getActiveShell ( )
- removeFilter ( )
- addFilter ( )
- getCursorLocation ( )
- getSystemImage ( )
- getFocusControl ( )
- getSystemTray ( )
- beep ( )
- getThread ( )
- getDPI ( )
- disposeExec ( )
- addListener ( )
Related Classes
- java.io.File
- java.lang.reflect.InvocationTargetException
- org.eclipse.swt.SWT
- org.eclipse.swt.widgets.Composite
- org.eclipse.swt.widgets.Button
- org.eclipse.swt.widgets.Label
- org.eclipse.swt.widgets.Shell
- org.eclipse.swt.layout.GridData
- org.eclipse.swt.widgets.Text
- org.eclipse.swt.layout.GridLayout
- org.eclipse.swt.events.SelectionEvent
- org.eclipse.swt.events.SelectionAdapter
- org.eclipse.swt.widgets.Control
- org.eclipse.swt.graphics.Image
- org.eclipse.core.runtime.CoreException
- org.eclipse.core.runtime.IProgressMonitor
- org.eclipse.core.runtime.IStatus
- org.eclipse.core.runtime.Status
- org.eclipse.swt.widgets.Group
- org.eclipse.swt.widgets.Event
- org.eclipse.swt.graphics.Point
- org.eclipse.jface.dialogs.MessageDialog
- org.eclipse.swt.graphics.Color
- org.eclipse.ui.PlatformUI
- org.eclipse.core.resources.IFile
Java Code Examples for org.eclipse.swt.widgets.Display#getSystemTray()
The following examples show how to use
org.eclipse.swt.widgets.Display#getSystemTray() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApplicationMain.java From logbook with MIT License | 5 votes |
/** * トレイアイコンを追加します * * @param display * @return */ private TrayItem addTrayItem(final Display display) { // トレイアイコンを追加します Tray tray = display.getSystemTray(); TrayItem item = new TrayItem(tray, SWT.NONE); Image image = display.getSystemImage(SWT.ICON_INFORMATION); item.setImage(image); item.setToolTipText(AppConstants.NAME + AppConstants.VERSION); item.addListener(SWT.Selection, new TraySelectionListener(this.shell)); item.addMenuDetectListener(new TrayItemMenuListener(this.getShell())); return item; }
Example 2
Source File: TraySWT.java From BiglyBT with GNU General Public License v2.0 | 4 votes |
public TraySWT(Display display) { tray = display.getSystemTray(); }