Examples of MyTextArea


Examples of PrologPlusCG.gui.MyTextArea

    java.awt.GridBagConstraints gridBagConstraints;
   
    jBoxesButtonsPanel = new javax.swing.JPanel();
    jButtonsPanel = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    webConsoleArea = new MyTextArea(env, prologFrame, true, 14);
   
    getContentPane().setLayout(new java.awt.GridBagLayout());
   
    jBoxesButtonsPanel.setLayout(new java.awt.GridBagLayout());
   
View Full Code Here

Examples of fr.soleil.comete.bean.experimentalframe.util.MyTextArea

        logBookRefField.addModifiableComponentListener(this);

        userListField = new MyTextField();
        userListField.addModifiableComponentListener(this);

        commentConditionsArea = new MyTextArea();
        commentConditionsArea.addModifiableComponentListener(this);

        commentSampleArea = new MyTextArea();
        commentSampleArea.addModifiableComponentListener(this);

        applyAction = new AbstractAction() {
            private static final long serialVersionUID = -2199530495927544842L;
View Full Code Here

Examples of fr.soleil.comete.bean.experimentalframe.util.MyTextArea

        logBookRefField.addModifiableComponentListener(this);

        userListField = new MyTextField();
        userListField.addModifiableComponentListener(this);

        commentConditionsArea = new MyTextArea();
        commentConditionsArea.addModifiableComponentListener(this);

        commentSampleArea = new MyTextArea();
        commentSampleArea.addModifiableComponentListener(this);

        applyAction = new AbstractAction() {
            private static final long serialVersionUID = -2199530495927544842L;
View Full Code Here

Examples of fr.soleil.comete.tangowidget.util.MyTextArea

        super();
    }

    @Override
    protected ITextTarget initWidget() {
        MyTextArea textArea = new MyTextArea();
        textArea.setDataSendingText(DEFAULT_DATA_SENDING_TEXT);
        return textArea;
    }
View Full Code Here

Examples of hermes.swing.MyTextArea

    super();
  }

  @Override
  public JComponent render(JScrollPane parent, Message m) {
    final JTextArea textArea = new MyTextArea();

    textArea.setEditable(false);
    textArea.setFont(Font.decode("Monospaced-PLAIN-12"));

    byte[] bytes = null;

    try {
      bytes = MessageUtils.asBytes(m);
      textArea.setText(DumpUtils.dumpBinary(bytes, DumpUtils.DUMP_AS_HEX_AND_ALPHA));
    } catch (Throwable e) {
      textArea.setText(e.getMessage());

      log.error("exception converting message to byte[]: ", e);
    }

    textArea.setCaretPosition(0);

    return textArea;
  }
View Full Code Here

Examples of hermes.swing.MyTextArea

   * @throws ClassNotFoundException
   */
  protected JComponent handleBytesMessage(JScrollPane parent, BytesMessage bytesMessage) throws JMSException, IOException, ClassNotFoundException {
    final MyConfig currentConfig = (MyConfig) getConfig();

    JTextArea textPane = new MyTextArea();

    textPane.setEditable(false);
    textPane.setWrapStyleWord(true);
    textPane.setLineWrap(true);
    bytesMessage.reset();

    if (currentConfig.isBytesIsObject()) {
      final byte[] bytes = MessageUtils.asBytes(bytesMessage);
      final ByteArrayInputStream bistream = new ByteArrayInputStream(bytes);
      final ObjectInputStream oistream = new ObjectInputStream(bistream);
      final Object o = oistream.readObject();

      textPane.setText(o.toString());
    } else if (currentConfig.isBytesIsString()) {
      try {
        String text = new String(MessageUtils.asBytes(bytesMessage), currentConfig.getBytesEncoding());
        textPane.setText(text);
        return textPane;
      } catch (JMSException e) {
        textPane.setText(e.getMessage());
      }
    } else {
      HexMessageRenderer renderer = new HexMessageRenderer();
      textPane = (JTextArea) renderer.render(parent, bytesMessage); // Hack.
    }

    textPane.setCaretPosition(0);

    return textPane;
  }
View Full Code Here

Examples of hermes.swing.MyTextArea

    super();
  }

  @Override
  public JComponent render(JScrollPane parent, Message m) {
    final JTextArea textArea = new MyTextArea();

    textArea.setEditable(false);
    textArea.setFont(Font.decode("Monospaced-PLAIN-12"));
    textArea.setWrapStyleWord(true);
    textArea.setLineWrap(true);
    textArea.setText(m.toString());
    textArea.setCaretPosition(0);

    return textArea;
  }
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.