List of usage examples for java.awt Label setSize
public void setSize(int width, int height)
From source file:SimpleInputMethod.java
public void setInputMethodContext(InputMethodContext context) { inputMethodContext = context;//www. j a v a2 s . com if (statusWindow == null) { statusWindow = context.createInputMethodWindow("Simple Input Method", false); Label label = new Label(); label.setText(locale.getDisplayName()); statusWindow.add(label); label.setSize(200, 50); statusWindow.add(label); statusWindow.pack(); Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); statusWindow.setLocation(d.width - statusWindow.getWidth(), d.height - statusWindow.getHeight()); } }