Package org.jitterbit.ui.widget.text

Examples of org.jitterbit.ui.widget.text.KongaTextArea$RepaintTrigger


        textPane.addToContextMenu(marker.getMarkerMenu());
        setLineWrap(false);
    }

    private KongaTextArea createTextComponent() {
        KongaTextArea text = new KongaTextArea();
        text.setEditable(false);
        text.setWrapStyleWord(true);
        text.setMargin(new Insets(2, 4, 2, 4));
        text.setBorder(new BorderBuilder().line(new Color(25, 25, 25)).empty(2));
        return text;
    }
View Full Code Here


                            frame.setSelected(true);
                        } catch (PropertyVetoException e) {
                            e.printStackTrace();
                        }
                    } catch (Exception ex) {
                        KongaTextArea text = new KongaTextArea(ex.toString(), 5, 40);
                        String title = "Failed to open '" + file.getName() + "'";
                        JOptionPane.showMessageDialog(null, new JScrollPane(text), title, JOptionPane.ERROR_MESSAGE);
                    } finally {
                        waitLock.release();
                    }
View Full Code Here

     *
     */
    public static TextInputField getDescriptionField() {
        String fieldName = ApplicationResources.STRINGS.getString("Description");
        JLabel label = new JLabel(fieldName);
        JTextArea input = new KongaTextArea(4, 30).disableTabs();
        return new TextInputField(fieldName, input, label);
    }
View Full Code Here

        return new DefaultNonEmptyTextInputField(name, getTextField(length, isFixedSize), jlabel);
    }

    public static TextInputField2 getNonEmptyTextAreaInputField(String name, String label, int rows, int columns) {
        JLabel jlabel = (label != null && label.length() > 0) ? new JLabel(label) : null;
        KongaTextArea text = new KongaTextArea(rows, columns) {

            @Override
            public Dimension getMaximumSize() {
                return getPreferredSize();
            }
View Full Code Here

    public static TextInputField getTextInputArea(String name,
                                                  String label,
                                                  int rows,
                                                  int columns) {
        JLabel jlabel = (label != null && label.length() > 0) ? new JLabel(label) : null;
        return new TextInputField(name, new KongaTextArea(rows, columns).disableTabs(), jlabel);
    }
View Full Code Here

        field.setFixedSize(isFixedSize);
        return field;
    }

    public static KongaTextArea getTextArea(int rows, int columns) {
        return new KongaTextArea(rows, columns).disableTabs();
    }
View Full Code Here

    }

    public void show(String initialValue) {
        close();
        currentEditor = getEditor();
        KongaTextArea text = new KongaTextArea(initialValue, rows, columns);
        undoRedo = new UndoRedoInstaller();
        undoRedo.install(text);
        currentEditor.show(text);
    }
View Full Code Here

        String text = entry.level().name();
        return createValueField(text);
    }

    private JTextArea createDetailsArea(ErrorLogEntry entry) {
        KongaTextArea area = KongaTextArea.viewer(entry.details(), 8, 40);
        TextStyles.DefaultMonoSpaced.makeOver(area);
        return area;
    }
View Full Code Here

            }
            toolbar.add(btn);
        }
        toolbar.add(new JButton(ApplicationResources.ICONS.getIcon("ArrowDown.16")));
        BorderLayoutBuilder layout = new BorderLayoutBuilder();
        textArea = new KongaTextArea(20, 70);
        layout.north(toolbar).center(textArea);
        QuickFrame.show(layout, "Layout");
    }
View Full Code Here

        table.disableSelections();
        return InvisiblePanel.newPanel(table);
    }

    private UiProvider getCommentUi(JitterPack jp) {
        KongaTextArea text = KongaTextArea.viewer(jp.getDescriptor().getComment(), 8, 40);
        text.setLabel(Strings.get("DescriptorDialog.Comment"));
        return text.asUiProvider();
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.text.KongaTextArea$RepaintTrigger

Copyright © 2018 www.massapicom. 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.