javax.swing.JTextPane.setMinimumSize()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中javax.swing.JTextPane.setMinimumSize()方法的一些代码示例,展示了JTextPane.setMinimumSize()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextPane.setMinimumSize()方法的具体详情如下:
包路径:javax.swing.JTextPane
类名称:JTextPane
方法名:setMinimumSize

JTextPane.setMinimumSize介绍

暂无

代码示例

代码示例来源:origin: MegaMek/mekhq

public JTextPane getReport() {
  JTextPane txtReport = new JTextPane();
  txtReport.setMinimumSize(new Dimension(800, 500));
  txtReport.setFont(new Font("Courier New", Font.PLAIN, 12));
  txtReport.setText(getCampaign().getTransportDetails());
  return txtReport;
}

代码示例来源:origin: MegaMek/mekhq

public JTextPane getReport() {
  JTextPane txtReport = new JTextPane();
  txtReport.setMinimumSize(new Dimension(800, 500));
  txtReport.setFont(new Font("Courier New", Font.PLAIN, 12));
  txtReport.setText(getCampaign().getCargoDetails());
  return txtReport;
}

代码示例来源:origin: MegaMek/mekhq

public JTextPane getReport() {
  // SplitPane them
  JSplitPane splitOverviewPersonnel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, getCombatPersonnelReport(), getSupportPersonnelReport());
  splitOverviewPersonnel.setName("splitOverviewPersonnel");
  splitOverviewPersonnel.setOneTouchExpandable(true);
  splitOverviewPersonnel.setResizeWeight(0.5);
  
  // Actual report pane
  JTextPane txtReport = new JTextPane();
  txtReport.setMinimumSize(new Dimension(800, 500));
  txtReport.insertComponent(splitOverviewPersonnel);
  return txtReport;
}

代码示例来源:origin: MegaMek/mekhq

public JTextPane getReport() {
  JTextPane txtReport = new JTextPane();
  txtReport.setMinimumSize(new Dimension(800, 500));
  txtReport.setFont(new Font("Courier New", Font.PLAIN, 12));
  
  txtReport.setAlignmentY(1.0f);
  txtReport.setText(getHangarTotals() + "\n\n\n");
  txtReport.insertComponent(getHangarTree());
 
  return txtReport;
}

代码示例来源:origin: stackoverflow.com

setLayout(new BorderLayout());
JTextPane editor = new JTextPane();
editor.setMinimumSize(new Dimension(0, 0));
add(new JScrollPane(editor));

代码示例来源:origin: antlr/codebuff

origTextPane = new JTextPane();
origTextPane.setEditable(false);
origTextPane.setMinimumSize(new Dimension(200, 100));
origTextPane.setText("Buffed text");
scrollPane1.setViewportView(origTextPane);
formattedTextPane = new JTextPane();
formattedTextPane.setEditable(false);
formattedTextPane.setMinimumSize(new Dimension(200, 100));
formattedTextPane.setText("original");
scrollPane2.setViewportView(formattedTextPane);

代码示例来源:origin: org.apache.uima/uimaj-tools

textPane.setSelectionColor(new Color(100, 100, 200, 75));
textPane.setPreferredSize(new Dimension(620, 400));
textPane.setMinimumSize(new Dimension(200, 100));
JScrollPane textScrollPane = new JScrollPane(textPane);

代码示例来源:origin: edu.utah.bmi.nlp/nlp-core

this.textPane.setEditable(false);
this.textPane.setPreferredSize(new Dimension(620, 400));
this.textPane.setMinimumSize(new Dimension(200, 100));

代码示例来源:origin: org.apache.uima/uimaj-tools

this.textPane.setEditable(false);
this.textPane.setPreferredSize(new Dimension(620, 400));
this.textPane.setMinimumSize(new Dimension(200, 100));

代码示例来源:origin: AlexFalappa/nb-springboot

tpDetails.setMinimumSize(new java.awt.Dimension(42, 63));
tpDetails.setPreferredSize(new java.awt.Dimension(42, 63));
scroller2.setViewportView(tpDetails);

代码示例来源:origin: org.orbisgis/orbisgis-omanager

bundleDetails.setMinimumSize(MINIMUM_BUNDLE_DESCRIPTION_DIMENSION);
bundleDetailsAndActions.add(new JScrollPane(bundleDetails),BorderLayout.CENTER);
bundleDetailsAndActions.add(bundleActions,BorderLayout.SOUTH);

代码示例来源:origin: net.sourceforge.jadex/jadex-runtimetools-swing

bottom.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED), " Details "));
this.details = new BrowserPane();
details.setMinimumSize(new Dimension(400,100));
details.setPreferredSize(new Dimension(400,100));
JScrollPane    scroll2    = new JScrollPane(details);

代码示例来源:origin: org.activecomponents.jadex/jadex-runtimetools-swing

bottom.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED), " Details "));
this.details = new BrowserPane();
details.setMinimumSize(new Dimension(400,100));
details.setPreferredSize(new Dimension(400,100));
JScrollPane    scroll2    = new JScrollPane(details);

代码示例来源:origin: ontop/ontop

txtTargetQuery.setMinimumSize(new java.awt.Dimension(600, 170));
txtTargetQuery.setPreferredSize(new java.awt.Dimension(600, 170));
scrTargetQuery.setViewportView(txtTargetQuery);

相关文章

JTextPane类方法