Package org.freeplane.core.ui.components

Examples of org.freeplane.core.ui.components.JRestrictedSizeScrollPane


    final StyleSheet styleSheet = document.getStyleSheet();
    styleSheet.removeStyle("p");
    styleSheet.removeStyle("body");
    styleSheet.addRule("p {margin-top:0;}\n");

    final JRestrictedSizeScrollPane scrollPane = new JRestrictedSizeScrollPane(tip);
    scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    scrollPane.setMaximumSize(new Dimension(Integer.MAX_VALUE, maximumWidth / 2));
    scrollPane.addComponentListener(new ComponentAdapter() {
      @Override
            public void componentResized(ComponentEvent e) {
              revalidate();
            }
    });
View Full Code Here


      return null;
   
    if(latexText != null){
      JEditorPane textEditor = new JEditorPane();
      textEditor.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, true);
      final JRestrictedSizeScrollPane scrollPane = new JRestrictedSizeScrollPane(textEditor);
      scrollPane.setMinimumSize(new Dimension(0, 60));
      final EditNodeDialog editNodeDialog = new LatexEditor(node, latexText, firstKeyEvent, editControl, false, textEditor);
      editNodeDialog.setTitle(TextUtils.getText("latex_editor"));
      textEditor.setContentType("text/latex");

      final String fontName = ResourceController.getResourceController().getProperty(LATEX_EDITOR_FONT);
View Full Code Here

    }

  protected void editScript(boolean selectAll) {
    JEditorPane textEditor = new JEditorPane();
    textEditor.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, true);
    final JRestrictedSizeScrollPane scrollPane = new JRestrictedSizeScrollPane(textEditor);
    scrollPane.setMinimumSize(minimumSize);
    textEditor.setContentType("text/groovy");

    final String fontName = ResourceController.getResourceController().getProperty(ScriptEditorPanel.GROOVY_EDITOR_FONT);
    final int fontSize = ResourceController.getResourceController().getIntProperty(ScriptEditorPanel.GROOVY_EDITOR_FONT_SIZE);
    textEditor.setFont(new Font(fontName, Font.PLAIN, fontSize));
View Full Code Here

      }
    }
    if(text.startsWith("=")){
      JEditorPane textEditor = new JEditorPane();
      textEditor.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, true);
      final JRestrictedSizeScrollPane scrollPane = new JRestrictedSizeScrollPane(textEditor);
      scrollPane.setMinimumSize(new Dimension(0, 60));
      final EditNodeDialog editNodeDialog = new FormulaEditor(node, text, firstKeyEvent, editControl, false, textEditor);
      editNodeDialog.setTitle(TextUtils.getText("formula_editor"));
      textEditor.setContentType("text/groovy");

      final String fontName = ResourceController.getResourceController().getProperty(FormulaEditor.GROOVY_EDITOR_FONT);
View Full Code Here

TOP

Related Classes of org.freeplane.core.ui.components.JRestrictedSizeScrollPane

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.