本文整理了Java中java.awt.Canvas.setEnabled()
方法的一些代码示例,展示了Canvas.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Canvas.setEnabled()
方法的具体详情如下:
包路径:java.awt.Canvas
类名称:Canvas
方法名:setEnabled
暂无
代码示例来源:origin: fiji/TrackMate
/**
* Forward the enabled flag to all components off this panel.
*/
@Override
public void setEnabled( final boolean enabled )
{
jLabelSetColorBy.setEnabled( enabled );
jComboBoxSetColorBy.setEnabled( enabled );
canvasColor.setEnabled( enabled );
}
代码示例来源:origin: sc.fiji/TrackMate_
/**
* Forward the enabled flag to all components off this panel.
*/
@Override
public void setEnabled( final boolean enabled )
{
jLabelSetColorBy.setEnabled( enabled );
jComboBoxSetColorBy.setEnabled( enabled );
canvasColor.setEnabled( enabled );
}
代码示例来源:origin: com.b3dgs.lionengine/lionengine-core-awt
/**
* Prepare windowed mode.
*
* @param output The output resolution
* @throws LionEngineException If unable to initialize windowed mode.
*/
private void initWindowed(Resolution output)
{
final Canvas canvas = new Canvas(conf);
canvas.setBackground(Color.BLACK);
canvas.setEnabled(true);
canvas.setVisible(true);
canvas.setIgnoreRepaint(true);
frame.add(canvas);
canvas.setPreferredSize(new Dimension(output.getWidth(), output.getHeight()));
frame.pack();
frame.setLocationRelativeTo(null);
ToolsAwt.createBufferStrategy(canvas, conf);
buf = canvas.getBufferStrategy();
// Set input listeners
componentForKeyboard = canvas;
componentForMouse = canvas;
componentForCursor = frame;
frame.validate();
}
内容来源于网络,如有侵权,请联系作者删除!