當前位置: 首頁>>代碼示例>>Java>>正文


Java RTextScrollPane.setFoldIndicatorEnabled方法代碼示例

本文整理匯總了Java中org.fife.ui.rtextarea.RTextScrollPane.setFoldIndicatorEnabled方法的典型用法代碼示例。如果您正苦於以下問題:Java RTextScrollPane.setFoldIndicatorEnabled方法的具體用法?Java RTextScrollPane.setFoldIndicatorEnabled怎麽用?Java RTextScrollPane.setFoldIndicatorEnabled使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.fife.ui.rtextarea.RTextScrollPane的用法示例。


在下文中一共展示了RTextScrollPane.setFoldIndicatorEnabled方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: SourceCodeEditor

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
/**
 *
 * @param frame
 * @param name
 */
public SourceCodeEditor(MainFrame frame, String name) {
	super(frame);
	this.fileName = name;
	setName(name);
	setLayout(new BorderLayout());
	textarea = new TextEditorPane();
	textarea.setCodeFoldingEnabled(true);
	textarea.setAnimateBracketMatching(true);
	textarea.setAutoIndentEnabled(true);
	textarea.setBracketMatchingEnabled(true);
	textarea.setAntiAliasingEnabled(true);
	textarea.getDocument().addDocumentListener(this);

	RTextScrollPane scrollpane = new RTextScrollPane(textarea);
	scrollpane.setFoldIndicatorEnabled(true);
	add(scrollpane);
}
 
開發者ID:roscisz,項目名稱:KernelHive,代碼行數:23,代碼來源:SourceCodeEditor.java

示例2: CustomCodeSyntaxPane

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
public CustomCodeSyntaxPane() {

		panel = new JPanel(new BorderLayout());
		textArea = new RSyntaxTextArea();
		textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);
		textArea.setAntiAliasingEnabled(true);
		textArea.setCodeFoldingEnabled(true);
		textArea.setFont(DerivedConfig.getPanelContentFont());

		// setup autocompletion
		for (String word : getAutocompletionStrings()) {
			provider.addCompletion(new BasicCompletion(provider, word));
		}
		new AutoCompletion(provider).install(textArea);

		scrollPane = new RTextScrollPane(textArea);
		scrollPane.setFoldIndicatorEnabled(true);
		scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
		scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
		panel.add(scrollPane);
		textArea.getDocument().putProperty(PlainDocument.tabSizeAttribute, 3); // Reduce tab size
	}
 
開發者ID:umlet,項目名稱:umlet,代碼行數:23,代碼來源:CustomCodeSyntaxPane.java

示例3: addNewTab

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
/**
 * Adds a tab labeled "*" to the TabbedPane. Also, adds a SparqlTextArea to
the tab, and modifies the text-area's pop-up menu to show a "Rename Tab"
option and removes the code-folding option.
 */
private void addNewTab() {
	SparqlTextArea textEditor = new SparqlTextArea();

	RTextScrollPane sp = new RTextScrollPane( textEditor );
	sp.setFoldIndicatorEnabled( false );
	this.addTab( "*", sp );
	this.setToolTipTextAt( this.getTabCount() - 1, "Add New Tab" );
	//If nothing is set to the text editor, when it is opened in V-CAMP/SEMOSS,
	//it may not respond to programmatic assignment, and the tool may hang:
	//textEditor.setText( "" );

	//Add an item to the context-popup menu that allows one to rename the current tab:
	JPopupMenu popup = textEditor.getPopupMenu();
	popup.add( renamer );

	//Place a black 1px border around the top component in TabbedQueries:
	sp.setBorder( BorderFactory.createMatteBorder( 0, 1, 1, 1, Color.BLACK ) );

	// Fix to make sure that bracket match highlighting follows component resize
	// (really small windows can make it ugly)
	textEditor.addComponentListener(new ComponentAdapter() {
		@Override
		public void componentResized( ComponentEvent e ) {
			int caratPosistion = ( (SparqlTextArea) e.getSource() ).getCaretPosition();
			( (SparqlTextArea) e.getSource() ).setCaretPosition( 0 );
			( (SparqlTextArea) e.getSource() ).setCaretPosition( caratPosistion );
		}
	} );
}
 
開發者ID:Ostrich-Emulators,項目名稱:semtool,代碼行數:35,代碼來源:TabbedQueries.java

示例4: getEditionPanel

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
private JPanel getEditionPanel() {
    if (this.editionPanel == null) {
        this.editionPanel = new JPanel(new BorderLayout());
        this.editionPanel.setBorder(border);
        RTextScrollPane sp = new RTextScrollPane(this.getEditor());
        sp.setFoldIndicatorEnabled(true);

        this.editionPanel.add(sp, BorderLayout.CENTER);
    }
    return this.editionPanel;
}
 
開發者ID:IGNF,項目名稱:geoxygene,代碼行數:12,代碼來源:StyleEditionExpertFrame.java

示例5: getEditionPanel

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
private JPanel getEditionPanel() {
  if (this.editionPanel == null) {
    this.editionPanel = new JPanel(new BorderLayout());
    this.editionPanel.setBorder(border);
    RTextScrollPane sp = new RTextScrollPane(this.getEditor());
    sp.setFoldIndicatorEnabled(true);

    this.editionPanel.add(sp, BorderLayout.CENTER);
    this.editionPanel.add(this.getSearchPanel(), BorderLayout.NORTH);
  }
  return this.editionPanel;
}
 
開發者ID:IGNF,項目名稱:geoxygene,代碼行數:13,代碼來源:StyleEditionExpertFrame.java

示例6: configureScriptTextArea

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
private void configureScriptTextArea(RSyntaxTextArea eventContent, RTextScrollPane scrollPane_2, String syntaxStyle)
{
    eventContent.setSyntaxEditingStyle(syntaxStyle);
    eventContent.getFoldManager().setCodeFoldingEnabled(true);
    eventContent.setFont(new Font("Hack", Font.PLAIN, 16));
    eventContent.setRows(3);
    eventContent.setMarkOccurrences(true);
    eventContent.setLineWrap(true);
    eventContent.setWrapStyleWord(true);

    scrollPane_2.setLineNumbersEnabled(true);
    scrollPane_2.setFoldIndicatorEnabled(true);
}
 
開發者ID:d0k1,項目名稱:jsflight,代碼行數:14,代碼來源:MainFrame.java

示例7: configure

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
private void configure(Project proj, HdlModel model) {
	this.project = proj;
	this.model = model;
	this.model.addHdlModelListener(modelListener);
	this.addWindowListener(frameListener);

	JPanel buttonsPanel = new JPanel();
	buttonsPanel.add(open);
	buttonsPanel.add(save);
	buttonsPanel.add(validate);
	buttonsPanel.add(close);
	open.addActionListener(frameListener);
	save.addActionListener(frameListener);
	close.addActionListener(frameListener);
	validate.addActionListener(frameListener);

	editor = new RSyntaxTextArea(ROWS, COLUMNS);
	editor.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_DELPHI);
	editor.setCodeFoldingEnabled(true);
	editor.setAntiAliasingEnabled(true);
	editor.getDocument().addDocumentListener(editorListener);

	RTextScrollPane sp = new RTextScrollPane(editor);
	sp.setFoldIndicatorEnabled(true);

	add(sp, BorderLayout.CENTER);
	add(buttonsPanel, BorderLayout.SOUTH);

	LocaleManager.addLocaleListener(frameListener);
	frameListener.localeChanged();
	pack();

	Dimension size = getSize();
	Dimension screen = getToolkit().getScreenSize();
	if (size.width > screen.width || size.height > screen.height) {
		size.width = Math.min(size.width, screen.width);
		size.height = Math.min(size.height, screen.height);
		setSize(size);
	}
}
 
開發者ID:reds-heig,項目名稱:logisim-evolution,代碼行數:41,代碼來源:HdlContentEditor.java

示例8: ScriptPageContent

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
/**
 * Script page content.
 * 
 * @param script
 *            script
 * @param language
 *            script language
 */
public ScriptPageContent(String script, Language language) {
	setLayout(new BorderLayout());

	textArea = new RSyntaxTextArea(20, 60);
	textArea.setTabSize(4);
	textArea.setSyntaxEditingStyle(language.getContentType());
	textArea.setCodeFoldingEnabled(true);
	textArea.setAntiAliasingEnabled(true);
	RTextScrollPane scrollPane = new RTextScrollPane(textArea);
	scrollPane.setFoldIndicatorEnabled(true);

	textArea.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
	textArea.setText(script);
	textArea.setVisible(true);
	textArea.addKeyListener(new KeyAdapter() {
		@Override
		public void keyPressed(KeyEvent e) {
			if (e.isControlDown() && e.getKeyCode() == KeyEvent.VK_F) {
				searchField.requestFocus();
			}
			super.keyPressed(e);
		}
	});

	scrollPane.setBorder(BorderFactory.createEmptyBorder());
	scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
	scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
	add(scrollPane, BorderLayout.CENTER);
	add(createToolBar(), BorderLayout.SOUTH);
}
 
開發者ID:naver,項目名稱:ngrinder-recorder,代碼行數:39,代碼來源:ScriptPageContent.java

示例9: createMainPanel

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
private JComponent createMainPanel() {
	txpQuery = new RSyntaxTextArea();
	txpQuery.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_SQL);
	scpQuery = new RTextScrollPane(txpQuery, true);
	scpQuery.setFoldIndicatorEnabled(true);
	scpQuery.setViewportView(txpQuery);

	scpRules = new JScrollPane();
	tblRules = new JTable();
	tblRules.setFillsViewportHeight(true);
	tblRules.setPreferredSize(new Dimension(100, 100));
	tblRules.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
	tblRules.setEditingColumn(0);
	tblRules.setAutoCreateColumnsFromModel(true);
	tblRules.setAutoCreateRowSorter(false);
	tblRules.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
	scpRules.setSize(tblRules.getPreferredSize());
	scpRules.setViewportView(tblRules);

	tblSelectResults = new JTable();		
	sppSelectResults = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
	sppSelectResults.setTopComponent(scpQuery);
	sppSelectResults.setBottomComponent(new JScrollPane(tblSelectResults));
	
	JSplitPane spp = new JSplitPane();
	spp.setRightComponent(sppSelectResults);
	spp.setDividerLocation(0.3);
	spp.setLeftComponent(new JScrollPane(tblRules));
	
	return spp;
}
 
開發者ID:psiotwo,項目名稱:sdlnot-rules,代碼行數:32,代碼來源:SparqlDLNotRulesPanelView.java

示例10: JavaEditor

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
public JavaEditor(JavaFile file) {
	this.file = file;
	mainSplitPane = new JSplitPane();
	mainSplitPane.setContinuousLayout(true);
	mainSplitPane.setResizeWeight(0.5);

	textArea = new RSyntaxTextArea();
	textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);
	textArea.setEditable(false);
	textArea.setAnimateBracketMatching(true);
	textArea.setAntiAliasingEnabled(true);
	textArea.setClearWhitespaceLinesEnabled(true);
	textArea.setCodeFoldingEnabled(true);
	textArea.setPaintMarkOccurrencesBorder(true);
	textArea.setPaintMatchedBracketPair(true);
	textArea.setMarkOccurrences(true);
	textArea.getCaret().addChangeListener(new ChangeListener() {
		@Override
		public void stateChanged(ChangeEvent paramChangeEvent) {
			textArea.getCaret().setVisible(true);
		}
	});

	int mod = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
	ResourceBundle msg = ResourceBundle.getBundle("org.fife.ui.rtextarea.RTextArea");

	RecordableTextAction copyAction = new RTextAreaEditorKit.CopyAction();
	copyAction.setProperties(msg, "Action.Copy");
	copyAction.setAccelerator(KeyStroke.getKeyStroke(67, mod));

	JPopupMenu menu = new JPopupMenu();
	menu.add(createPopupMenuItem(copyAction));
	menu.add(createPopupMenuItem(new RenameAction()));
	textArea.setPopupMenu(menu);

	textArea.setText(
			"package abc;\r\n\r\npublic class Example{\r\n\tprivate int example = 0;\r\n\t\r\n\tpublic void example(){\r\n\t\tSystem.out.println(\"hi!\");\r\n\t}\r\n\t\r\n\tpublic static void main(String[] args){\r\n\t\texample();\r\n\t}\r\n}");

	textArea.convertSpacesToTabs();

	theme.apply(textArea);

	RTextScrollPane scrollPane = new RTextScrollPane(textArea, true);
	scrollPane.getGutter().setBookmarkingEnabled(true);
	scrollPane.getGutter()
			.setBookmarkIcon(new ImageIcon(EditorWindow.class.getResource("/resources/menu/connection.gif")));
	scrollPane.setIconRowHeaderEnabled(true);
	scrollPane.setFoldIndicatorEnabled(true);
	mainSplitPane.setLeftComponent(scrollPane);

	JScrollPane treeScrollPane = new JScrollPane();
	mainSplitPane.setRightComponent(treeScrollPane);

	JTree tree = new JTree();
	tree.setModel(new DefaultTreeModel(new DefaultMutableTreeNode("Example") {
		{
			DefaultMutableTreeNode node_1;
			node_1 = new DefaultMutableTreeNode("Variables");
			node_1.add(new DefaultMutableTreeNode("int example"));
			add(node_1);
			node_1 = new DefaultMutableTreeNode("Methods");
			node_1.add(new DefaultMutableTreeNode("public void example()"));
			node_1.add(new DefaultMutableTreeNode("public static void main(String[] args)"));
			add(node_1);
			add(new DefaultMutableTreeNode("Patches"));
		}
	}));
	treeScrollPane.setViewportView(tree);
}
 
開發者ID:Error22,項目名稱:Lychee,代碼行數:70,代碼來源:JavaEditor.java

示例11: FindAndReplaceDemo

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
public FindAndReplaceDemo() {

		JPanel cp = new JPanel(new BorderLayout());

		textArea = new RSyntaxTextArea(20, 60);
		textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);
		textArea.setCodeFoldingEnabled(true);
		textArea.setAntiAliasingEnabled(true);
		RTextScrollPane sp = new RTextScrollPane(textArea);
		sp.setFoldIndicatorEnabled(true);
		cp.add(sp);

		// Create a toolbar with searching options.
		JToolBar toolBar = new JToolBar();
		searchField = new JTextField(30);
		toolBar.add(searchField);
		final JButton nextButton = new JButton("Find Next");
		nextButton.setActionCommand("FindNext");
		nextButton.addActionListener(this);
		toolBar.add(nextButton);
		searchField.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				nextButton.doClick(0);
			}
		});
		JButton prevButton = new JButton("Find Previous");
		prevButton.setActionCommand("FindPrev");
		prevButton.addActionListener(this);
		toolBar.add(prevButton);
		regexCB = new JCheckBox("Regex");
		toolBar.add(regexCB);
		matchCaseCB = new JCheckBox("Match Case");
		toolBar.add(matchCaseCB);
		cp.add(toolBar, BorderLayout.NORTH);

		setContentPane(cp);
		setTitle("Find and Replace Demo");
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		pack();
		setLocationRelativeTo(null);

	}
 
開發者ID:glaudiston,項目名稱:project-bianca,代碼行數:44,代碼來源:FindAndReplaceDemo.java

示例12: SimonkEditorPanel

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
public SimonkEditorPanel(KKMulticopterFlashTool parent) {
	this.parent = parent;
	
	//create the CellContraints
	cc  = new CellConstraints();
			
	// create the Layout for Panel this
	String panelColumns = "fill:pref:grow";
	String panelRows = "pref,3dlu,fill:pref:grow,3dlu,pref";
	FormLayout formLayout = new FormLayout(panelColumns, panelRows);
	
	this.setLayout(formLayout);

	githubPanel = new GithubPanel("sim-/tgy");
	githubPanel.addGithubPanelListener(this);
			
	tgyTextArea = new RSyntaxTextArea(20, 60);
	tgyTextArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_ASSEMBLER_X86);
	tgyTextArea.setCodeFoldingEnabled(true);
	tgyTextArea.setAntiAliasingEnabled(true);
	RTextScrollPane tgyEditorPane = new RTextScrollPane(tgyTextArea);
	tgyEditorPane.setFoldIndicatorEnabled(true);
	tgyEditorPane.setLineNumbersEnabled(true);
	
	incTextArea = new RSyntaxTextArea(20, 60);
	incTextArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_ASSEMBLER_X86);
	incTextArea.setCodeFoldingEnabled(true);
	incTextArea.setAntiAliasingEnabled(true);
	RTextScrollPane incEditorPane = new RTextScrollPane(incTextArea);
	incEditorPane.setFoldIndicatorEnabled(true);
	incEditorPane.setLineNumbersEnabled(true);
	
	tabs = new JTabbedPane();
	tabs.add("empty",tgyEditorPane);
	tabs.add("empty",incEditorPane);
	
	saveButton = new JButton(_("save"));
	saveButton.addActionListener(this);
	saveButton.setEnabled(false);
	
	compileButton = new JButton(_("compile"));
	compileButton.addActionListener(this);
	compileButton.setEnabled(false);
	
	saveCompileButton = new JButton(_("save") + " & " +_("compile"));
	saveCompileButton.addActionListener(this);
	saveCompileButton.setEnabled(false);
	
	bar = new ButtonBarBuilder2();
	bar.addButton(saveButton);
	bar.addButton(compileButton);
	bar.addGlue();
	bar.addUnrelatedGap();
	bar.addButton(saveCompileButton);
	
	this.add(githubPanel, cc.xy(1, 1));
	this.add(tabs, cc.xy(1, 3));
	this.add(bar.getPanel(), cc.xy(1, 5));

	try {
		Theme theme = Theme.load(SimonkEditorPanel.class.getResourceAsStream("/de/lazyzero/kkMulticopterFlashTool/gui/widgets/dark.xml"));
		theme.apply(tgyTextArea);
		theme.apply(incTextArea);
	} catch (IOException ioe) { // Never happens
		ioe.printStackTrace();
	}
}
 
開發者ID:lazyzero,項目名稱:kkMulticopterFlashTool,代碼行數:68,代碼來源:SimonkEditorPanel.java

示例13: FindAndReplaceDemo

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
public FindAndReplaceDemo() {

    JPanel cp = new JPanel(new BorderLayout());

    textArea = new RSyntaxTextArea(20, 60);
    textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);
    textArea.setCodeFoldingEnabled(true);
    textArea.setAntiAliasingEnabled(true);
    RTextScrollPane sp = new RTextScrollPane(textArea);
    sp.setFoldIndicatorEnabled(true);
    cp.add(sp);

    // Create a toolbar with searching options.
    JToolBar toolBar = new JToolBar();
    searchField = new JTextField(30);
    toolBar.add(searchField);
    final JButton nextButton = new JButton("Find Next");
    nextButton.setActionCommand("FindNext");
    nextButton.addActionListener(this);
    toolBar.add(nextButton);
    searchField.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        nextButton.doClick(0);
      }
    });
    JButton prevButton = new JButton("Find Previous");
    prevButton.setActionCommand("FindPrev");
    prevButton.addActionListener(this);
    toolBar.add(prevButton);
    regexCB = new JCheckBox("Regex");
    toolBar.add(regexCB);
    matchCaseCB = new JCheckBox("Match Case");
    toolBar.add(matchCaseCB);
    cp.add(toolBar, BorderLayout.NORTH);

    setContentPane(cp);
    setTitle("Find and Replace Demo");
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    pack();
    setLocationRelativeTo(null);

  }
 
開發者ID:MyRobotLab,項目名稱:myrobotlab,代碼行數:44,代碼來源:FindAndReplaceDemo.java

示例14: SerpentEditor

import org.fife.ui.rtextarea.RTextScrollPane; //導入方法依賴的package包/類
public SerpentEditor(ToolBar toolBar) {

        this.toolBar = toolBar;
        addCloseAction();
        contentPane = new JPanel(new BorderLayout());

        URL url = ClassLoader.getSystemResource("ethereum-icon.png");
        Toolkit kit = Toolkit.getDefaultToolkit();
        Image img = kit.createImage(url);
        this.setIconImage(img);
        this.setLocation(30, 70);

        AbstractTokenMakerFactory atmf = (AbstractTokenMakerFactory)TokenMakerFactory.getDefaultInstance();
        atmf.putMapping("text/serpent", "org.ethereum.gui.SerpentTokenMaker");

        codeArea = new RSyntaxTextArea(32, 80);
        codeArea.setSyntaxEditingStyle("text/serpent");
        codeArea.setCodeFoldingEnabled(true);
        codeArea.setAntiAliasingEnabled(true);
        codeArea.setText(defaultCode);

        changeStyleProgrammatically();

        RTextScrollPane sp = new RTextScrollPane(codeArea);

        sp.setFoldIndicatorEnabled(true);
        contentPane.setLayout(new BorderLayout());

        splitPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
        splitPanel.setOneTouchExpandable(true);
        splitPanel.setDividerSize(5);
        splitPanel.setContinuousLayout(true);

        contentPane.add(splitPanel, BorderLayout.CENTER);
        splitPanel.add(sp);

        result = new JTextArea();
        result.setLineWrap(true);
        result.setWrapStyleWord(true);
        result.setVisible(false);

        splitPanel.add(result);

        JPanel controlsPanel = new JPanel();
        FlowLayout fl = new FlowLayout(FlowLayout.CENTER, 10, 5);
//        fl.setAlignment(FlowLayout.RIGHT);
        controlsPanel.setLayout(fl);
        controlsPanel.setMaximumSize(new Dimension(10000, 20));
        controlsPanel.setPreferredSize(new Dimension(600, 20));
        controlsPanel.setMinimumSize(new Dimension(1, 20));

        contentPane.add(controlsPanel, BorderLayout.SOUTH);

        createToolBar();

        setContentPane(contentPane);
        setTitle("Serpent Editor");

        pack();
        this.revalidate();
        this.repaint();
    }
 
開發者ID:ethereumj,項目名稱:ethereumj,代碼行數:63,代碼來源:SerpentEditor.java


注:本文中的org.fife.ui.rtextarea.RTextScrollPane.setFoldIndicatorEnabled方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。