javax.swing.text.JTextComponent.setOpaque()方法的使用及代码示例

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

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

JTextComponent.setOpaque介绍

暂无

代码示例

代码示例来源:origin: net.sf.nimrod/nimrod-laf

protected void uninstallDefaults() {
 super.uninstallDefaults();
 
 getComponent().setOpaque( oldOpaque);
}

代码示例来源:origin: com.l2fprod.common/l2fprod-common-shared

public static void makeMultilineLabel(JTextComponent area) {
 area.setFont(UIManager.getFont("Label.font"));
 area.setEditable(false);
 area.setOpaque(false);    
 if (area instanceof JTextArea) {
  ((JTextArea)area).setWrapStyleWord(true);
  ((JTextArea)area).setLineWrap(true);
 }
}

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

public static void configuraWebLaf(JTextComponent field) {
    if (!WeblafUtils.weblafEstaInstalado()) {
      return;
    }
//       ((WebTextAreaUI) field.getUI()).setDrawBorder(false);
//       ((WebTextAreaUI) field.getUI()).setDrawBackground(true);
    field.setBorder(new EmptyBorder(15,15,15,15));
    field.setOpaque(true);
    field.setBackground(ColorController.COR_DESTAQUE);
    field.setForeground(ColorController.COR_LETRA);
  }
  public static void configuraWebLaf(JProgressBar field) {

代码示例来源:origin: jsettlers/settlers-remake

/**
 * Install the border
 * 
 * @param txt
 *            Text component
 */
public static void installUi(JTextComponent txt) {
  txt.setOpaque(false);
  Insets margin = txt.getMargin();
  if (margin == null) {
    margin = new Insets(5, 5, 5, 5);
  }
  Border marginBorder = BorderFactory.createEmptyBorder(margin.top + 3, margin.left, margin.bottom + 3, margin.right);
  CompoundBorder border = new CompoundBorder(BorderFactory.createLineBorder(Color.WHITE), marginBorder);
  txt.setBorder(border);
  txt.setBackground(Color.BLUE);
  txt.setForeground(Color.WHITE);
  txt.setSelectionColor(SELECTION_COLOR);
}

代码示例来源:origin: net.sf.nimrod/nimrod-laf

protected void installDefaults() {
 super.installDefaults();
 
 oldOpaque = getComponent().isOpaque();
 getComponent().setOpaque( false);
}

代码示例来源:origin: net.java.abeille/abeille

component.setOpaque(true); // opaque by default
component.setAutoscrolls(true); // autoscrolling by default

代码示例来源:origin: threerings/tripleplay

_textComp.setOpaque(false);

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

.getBackgroundPainter(txt)));
promptComponent.setEnabled(txt.isEnabled());
promptComponent.setOpaque(txt.isOpaque());
promptComponent.setBounds(txt.getBounds());
Border b = txt.getBorder();

代码示例来源:origin: org.swinglabs.swingx/swingx-core

.getBackgroundPainter(txt)));
promptComponent.setEnabled(txt.isEnabled());
promptComponent.setOpaque(txt.isOpaque());
promptComponent.setBounds(txt.getBounds());
Border b = txt.getBorder();

代码示例来源:origin: org.swinglabs.swingx/swingx-all

.getBackgroundPainter(txt)));
promptComponent.setEnabled(txt.isEnabled());
promptComponent.setOpaque(txt.isOpaque());
promptComponent.setBounds(txt.getBounds());
Border b = txt.getBorder();

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

.getBackgroundPainter(txt)));
promptComponent.setEnabled(txt.isEnabled());
promptComponent.setOpaque(txt.isOpaque());
promptComponent.setBounds(txt.getBounds());
Border b = txt.getBorder();

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

editor.setOpaque(plaf.getBoolean(prefix + ".opaque"));

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

editor.setOpaque(plaf.getBoolean(prefix + ".opaque"));

相关文章

JTextComponent类方法