javax.swing.JDesktopPane.putClientProperty()方法的使用及代码示例

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

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

JDesktopPane.putClientProperty介绍

暂无

代码示例

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

public void putClientProperty(String key, String value)
{
 super.putClientProperty(key, value);
}

代码示例来源:origin: realXuJiang/bigtable-sql

public void putClientProperty(String key, String value)
{
 super.putClientProperty(key, value);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf

/**
  * Constructor for the InternalTest object
  */
 InternalTest() {
  setLayout(new BorderLayout());
  JDesktopPane desk = new JDesktopPane();
  add("Center", new JScrollPane(desk));
  desk.putClientProperty("JDesktopPane.backgroundEnabled", Boolean.TRUE);
  JInternalFrame frame = new JInternalFrame("A Frame", true, true, true, true);
  frame.getContentPane().add(new JButton("Ola"));
  frame.setVisible(true);
  frame.setSize(200, 100);
  desk.add(frame);
  frame = new JInternalFrame("An other Frame", true, true, true, true);
  frame.getContentPane().add(new JButton("Hello"));
  frame.setMaximizable(false);
  frame.setVisible(true);
  frame.setSize(200, 200);
  frame.setLocation(50, 50);
  desk.add(frame);
 }
}

相关文章