Skip to content

Commit 43b8219

Browse files
author
jossonsmith
committed
Update control examples for Java2Script mode.
It seems there is a obvious bug that Group with title text in the first tab page is not correctly drawn.
1 parent dd7b720 commit 43b8219

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ControlExample.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ void initResources() {
300300
* Invokes as a standalone program.
301301
*/
302302
public static void main(String[] args) {
303+
System.out.println("To begin control examples ..."); // bring the correct width and height of XHTML
303304
Display display = new Display();
304305
int styleNone = SWT.NONE;
305306
int style = styleNone;
@@ -314,10 +315,10 @@ public static void main(String[] args) {
314315
ControlExample instance = new ControlExample(shell);
315316
shell.setText(getResourceString("window.title"));
316317
// setShellSize(display, shell);
317-
/**
318-
* @j2sNative
319-
* shell.setMaximized(true);
320-
*/ {}
318+
// /**
319+
// * @j2sNative
320+
// * shell.setMaximized(true);
321+
// */ {}
321322

322323
shell.open();
323324
while (! shell.isDisposed()) {

0 commit comments

Comments
 (0)