Skip to content

Commit 57adeaf

Browse files
author
jossonsmith
committed
Support SWT.VERTICAL in ToolBar
Add ">>" button to CoolBar without further implementation.
1 parent 2e5cea6 commit 57adeaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void run() {
115115
if (control != null && control instanceof Label) {
116116
control.dispose();
117117
}
118-
item.setImage(images[(int) Math.round(3 * Math.random())]);
118+
item.setImage(images[(int) Math.floor(3 * Math.random())]);
119119
tabFolder.setSelection(tabFolder.getSelectionIndex());
120120
item.setControl(page);
121121
//item.getParent().getShell().pack();
@@ -343,7 +343,7 @@ public static void main(String[] args) {
343343
// setShellSize(display, shell);
344344
/**
345345
* @j2sNative
346-
* shell.setMaximized(true);
346+
* //shell.setMaximized(true);
347347
*/ {}
348348

349349
shell.open();

0 commit comments

Comments
 (0)