Examples of TextPane


Examples of org.apache.pivot.wtk.TextPane

    @Override
    public boolean keyTyped(final Component component, char character) {
        boolean consumed = super.keyTyped(component, character);

        final TextPane textPane = (TextPane)getComponent();

        if (textPane.isEditable()) {
            Document document = textPane.getDocument();

            if (document != null) {
                // Ignore characters in the control range and the ASCII delete
                // character as well as meta key presses
                if (character > 0x1F
                    && character != 0x7F
                    && !Keyboard.isPressed(Keyboard.Modifier.META)) {
                    textPane.insert(character);
                    showCaret(true);
                }
            }
        }
View Full Code Here

Examples of org.beryl.gui.widgets.TextPane

      warning = ImageIconFactory.getIcon("warning");
      info = ImageIconFactory.getIcon("info");
    }

    dialog = constructDialog("MessageDialog", dataModel);
    TextPane textPane = (TextPane) dialog.getWidget("MessagePane");
    switchButton = (Button) dialog.getWidget("SwitchButton");
    containerPanel = (Panel) dialog.getWidget("ContainerPanel");

    if (details == null) {
      switchButton.setEnabled(false);
    } else {
      TextPane detailPane = (TextPane) dialog.getWidget("DetailPane");
      detailPane.addText(details);
    }

    switch (type) {
      case INFORMATION_MESSAGE :
        textPane.addIcon(info);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.