Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 285087 Details for
Bug 569825
Console warning creating MessageBox on Big Sur
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Simple test app
MB2.java (text/plain), 1.29 KB, created by
Tim deBoer
on 2020-12-20 11:13:12 EST
(
hide
)
Description:
Simple test app
Filename:
MIME Type:
Creator:
Tim deBoer
Created:
2020-12-20 11:13:12 EST
Size:
1.29 KB
patch
obsolete
>package org; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.events.SelectionAdapter; >import org.eclipse.swt.events.SelectionEvent; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Button; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.MessageBox; >import org.eclipse.swt.widgets.Shell; > >public class MB2 { > protected MB2(Shell shell) { > shell.setLayout(new GridLayout()); > > Button clickMe = new Button(shell, SWT.PUSH); > clickMe.setText("Click Me"); > clickMe.setLayoutData(new GridData(SWT.CENTER, SWT.BEGINNING, false, false)); > clickMe.addSelectionListener(new SelectionAdapter() { > @Override > public void widgetSelected(SelectionEvent event) { > MessageBox dialog = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO); > dialog.setText(shell.getText()); > dialog.setMessage("Yes or no?"); > dialog.open(); > } > }); > } > > public static void main(String[] args) { > System.out.println(SWT.getVersion()); > Display display = new Display(); > final Shell shell = new Shell(display); > shell.setText("Test"); > > MB2 ui = new MB2(shell); > ui.toString(); > > shell.pack(); > shell.open(); > > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) > display.sleep(); > } > display.dispose(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 569825
: 285087