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

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

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

JSlider.setOpaque介绍

暂无

代码示例

代码示例来源:origin: magefree/mage

sliderPanel.setOpaque(false);
cardSizeSlider = new JSlider(SwingConstants.HORIZONTAL, 0, 100, 50);
cardSizeSlider.setOpaque(false);
cardSizeSlider.setPreferredSize(new Dimension(100, (int) cardSizeSlider.getPreferredSize().getHeight()));
cardSizeSlider.addChangeListener(e -> {

代码示例来源:origin: org.geotools/gt-widgets-swing-pending

/**
 * opacity component, slider
 */
public OpacityComponent() {
  super();
  setLayout(new GridLayout(1, 1));
  slide.setOpaque(false);
  slide.setPaintTicks(true);
  slide.addChangeListener(new ChangeListener() {
    public void stateChanged(ChangeEvent e) {
      applyOpacity(slide.getValue() / 100d);
    }
  });
}

代码示例来源:origin: com.samskivert/samskivert

/**
 * Creates a simple slider with the specified configuration.
 *
 * @param label the text to display to the left of the slider.
 * @param min the slider's minimium value.
 * @param max the slider's maximum value.
 * @param value the slider's starting value.
 */
public SimpleSlider (String label, int min, int max, int value)
{
  super(new BorderLayout(5, 5));
  setOpaque(false);
  add(_label = new JLabel(), BorderLayout.WEST);
  setLabel(label);
  add(_slider = new JSlider(min, max, value), BorderLayout.CENTER);
  _slider.setOpaque(false);
  _slider.addChangeListener(this);
  add(_value = new JLabel(Integer.toString(value)), BorderLayout.EAST);
}

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

@Override
protected void installDefaults(JSlider slider) {
  super.installDefaults(slider);
  focusInsets = new Insets(0, 0, 0, 0);
  slider.setOpaque(false);
  if (slider.getOrientation() == JSlider.HORIZONTAL) {
    slider.setBorder(new EmptyBorder(0, 1, -1, 1));
  } else {
    slider.setBorder(new EmptyBorder(0, 0, 0, 1));
  }
  //slider.setRequestFocusEnabled(QuaquaManager.getBoolean("Slider.requestFocusEnabled"));
  slider.setRequestFocusEnabled(true);
}

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

scaleSlider.setOpaque(false);

代码示例来源:origin: abc9070410/JComicDownloader

"retry " + retryTimesSlider.getValue() + "times when download failed", "" );
CommonGUI.setToolTip( retryTimesLabel, "通常下載失敗是伺服器異常或網路速度過慢所致,立即重試的成功機率其實不高" );
retryTimesSlider.setOpaque( !SetUp.getUsingBackgroundPicOfOptionFrame() );
             "connection timeout: " + timeoutSlider.getValue() + "seconds", "" );
CommonGUI.setToolTip( timeoutLabel, "超過此時間會中斷此連線,直接下載下一個檔案,建議只在下載GOOGLE圖片時使用,其他時候建議設為0,代表沒有逾時限制" );
timeoutSlider.setOpaque( !SetUp.getUsingBackgroundPicOfOptionFrame() );

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

@Override
protected void installDefaults(JSlider slider) {
  super.installDefaults(slider);
  focusInsets = new Insets(0, 0, 0, 0);
  slider.setOpaque(false);
  if (slider.getOrientation() == JSlider.HORIZONTAL) {
    slider.setBorder(new VisualMargin(0, 1, -1, 1));
  } else {
    slider.setBorder(new VisualMargin(0, 0, 0, 1));
  }
  // slider.setRequestFocusEnabled(QuaquaManager.getBoolean("Slider.requestFocusEnabled"));
  slider.setRequestFocusEnabled(true);
}

代码示例来源:origin: abc9070410/JComicDownloader

"wait " + singleScriptWaitTimeSlider.getValue() + " seconds before performing the script", "" );
CommonGUI.setToolTip( singleScriptWaitTimeLabel, "等待此設定秒數後,才繼續進行壓縮等後續動作和處理下一個任務" );
singleScriptWaitTimeSlider.setOpaque( !SetUp.getUsingBackgroundPicOfOptionFrame() );

代码示例来源:origin: lbalazscs/Pixelitor

@Override
protected void installListeners(JSlider slider) {
  super.installListeners(slider);
  slider.removeMouseListener(trackListener);
  slider.removeMouseMotionListener(trackListener);
  slider.addMouseListener(myMouseListener);
  slider.addMouseMotionListener(myMouseListener);
  slider.setOpaque(false);
}

代码示例来源:origin: com.github.insubstantial/substance

@Override
protected void installDefaults(JSlider slider) {
  super.installDefaults(slider);
  focusInsets = new Insets(0, 0, 0, 0);
  slider.setOpaque(false);
  if (slider.getOrientation() == JSlider.HORIZONTAL) {
    slider.setBorder(new VisualMargin(0, 1, -1, 1));
  } else {
    slider.setBorder(new VisualMargin(0, 0, 0, 1));
  }
  // slider.setRequestFocusEnabled(QuaquaManager.getBoolean("Slider.requestFocusEnabled"));
  slider.setRequestFocusEnabled(true);
}

代码示例来源:origin: org.gephi/ui-components

initComponents();
((JRangeSlider) rangeSlider).setUpperValue(1000);
rangeSlider.setOpaque(false);
lowerBoundTextField.setOpaque(false);
lowerBoundTextField.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));

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

brightnessSlider.setMaximum(100);
brightnessSlider.setValue(100);
brightnessSlider.setOpaque(false);
saturationSlider.setMaximum(100);
saturationSlider.setValue(100);
saturationSlider.setOpaque(false);

代码示例来源:origin: com.github.insubstantial/substance

brightnessSlider.setMaximum(100);
brightnessSlider.setValue(100);
brightnessSlider.setOpaque(false);
saturationSlider.setMaximum(100);
saturationSlider.setValue(100);
saturationSlider.setOpaque(false);

代码示例来源:origin: info.aduna.commons/aduna-commons-graphics

slider.setOpaque(false);
slider.addChangeListener(this);

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

setDataProviderCreditShown(false);
zoomSlider.setOpaque(false);
try {
Icon minusIcon = new ImageIcon(getClass().getResource(

代码示例来源:origin: org.jdesktop.swingx/jxmapviewer2

setDataProviderCreditShown(false);
zoomSlider.setOpaque(false);
try

代码示例来源:origin: org.jxmapviewer/jxmapviewer2

setDataProviderCreditShown(false);
zoomSlider.setOpaque(false);
try

代码示例来源:origin: msteiger/jxmapviewer2

setDataProviderCreditShown(false);
zoomSlider.setOpaque(false);
try

相关文章

JSlider类方法