Community
Participate
Working Groups
The layout for the SWT combo widget is set to take up as much space as required but its a few pixels short in some languages like Korean. Code is as follows - Combo combo = new Combo(comp, SWT.DROP_DOWN | SWT.READ_ONLY); combo.setItems(...); combo.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.GRAB_HORIZONTAL | GridData.VERTICAL_ALIGN_CENTER));
Could you attach a screenshot, some korean text (Java literal quoted, you can use http://www.snible.org/java2/uni2java.html for that), and the font set in the combo (add a "System.out.println (combo.getFont().getFontData() [0]);" to your code and paste here the result). Thanks.
*** Bug 75121 has been marked as a duplicate of this bug. ***
Created attachment 14831 [details] screen capture showing trancation problem in Korean Here is my screen capture fo 75121.
Worked fine on my machine, plese modify the snippet so that it shows the problem: public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setSize(200, 200); final Combo combo = new Combo(shell, SWT.DROP_DOWN | SWT.READ_ONLY); String[] items = { "\u3154\u3150\u3137\u3141\u3139\u3137", "\u3141\u3142\uADDC\uCE04\u3163\u3154", "\u3141\u313B\u3134\u3147\uB7B4\u3155\u3150\u3154\u3142" }; combo.setItems(items); combo.select(0); combo.pack(); shell.open(); while (!shell.isDisposed()) if (!display.readAndDispatch()) display.sleep(); display.dispose(); }
Our TVT tester reported that this only happens on a native Korean Windows machine, not Windows + MUI. Are you using Windows + MUI?
Yes, I don't think we have a windows korean machine in ottawa lab.
*** Bug 73947 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 89378 ***