本文整理了Java中javax.swing.JLayeredPane.<init>()
方法的一些代码示例,展示了JLayeredPane.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLayeredPane.<init>()
方法的具体详情如下:
包路径:javax.swing.JLayeredPane
类名称:JLayeredPane
方法名:<init>
暂无
代码示例来源:origin: stackoverflow.com
JLayeredPane pane = new JLayeredPane();
JLabel ontop = new JLabel("On top");
JLabel behind = new JLabel("Behind");
pane.add(ontop, 2, 0);
pane.add(behind, 1, 0);
代码示例来源:origin: stackoverflow.com
private JLayeredPane lpane = new JLayeredPane();
private JPanel panelBlue = new JPanel();
private JPanel panelGreen = new JPanel();
代码示例来源:origin: magefree/mage
/**
* Create the panel.
*/
public CardArea() {
setLayout(new BorderLayout(0, 0));
scrollPane = new JScrollPane();
add(scrollPane, BorderLayout.CENTER);
setGUISize();
cardArea = new JLayeredPane();
scrollPane.setViewportView(cardArea);
}
代码示例来源:origin: stackoverflow.com
this.layeredPane = new JLayeredPane();
layeredPane.setPreferredSize(new Dimension(300, 300));
layeredPane.add(imageContainer, new Integer(50));
代码示例来源:origin: magefree/mage
private void initComponents() {
setOpaque(false);
jPanel = new JLayeredPane();
jPanel.setLayout(null);
jPanel.setOpaque(false);
jScrollPane = new JScrollPane(jPanel);
Border empty = new EmptyBorder(0, 0, 0, 0);
jScrollPane.setBorder(empty);
jScrollPane.setViewportBorder(empty);
jScrollPane.setOpaque(false);
jScrollPane.getViewport().setOpaque(false);
this.add(jScrollPane);
}
代码示例来源:origin: magefree/mage
tabResult = new javax.swing.JLayeredPane();
pnlText = new javax.swing.JLayeredPane();
lblGameInfo = new javax.swing.JLabel();
lblMatchInfo = new javax.swing.JLabel();
代码示例来源:origin: stackoverflow.com
layeredPane = new JLayeredPane();
layeredPane.setPreferredSize( boardSize );
layeredPane.addMouseListener( this );
代码示例来源:origin: stackoverflow.com
layeredPane = new JLayeredPane();
代码示例来源:origin: magefree/mage
jToggleCardView = new javax.swing.JToggleButton();
panelCardArea = new javax.swing.JScrollPane();
cardArea = new javax.swing.JLayeredPane();
代码示例来源:origin: magefree/mage
cardContent = new JLayeredPane();
cardContent.setLayout(null);
cardContent.setOpaque(false);
代码示例来源:origin: magefree/mage
jPanelRight.setLayout(null);
jLayeredPane = new JLayeredPane();
jPanelCenter.add(jLayeredPane, BorderLayout.CENTER);
代码示例来源:origin: magefree/mage
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
int w = getDlgParams().rect.width;
int h = getDlgParams().rect.height;
jLayeredPane = new JLayeredPane();
add(jLayeredPane);
jLayeredPane.setSize(w, h);
jLayeredPane.setVisible(true);
jLayeredPane.setOpaque(false);
jTitle = new CustomLabel();
jTitle.setBounds(new Rectangle(5, 3, w, 16));
jTitle.setFont(new Font("Dialog", Font.BOLD, 14));
jTitle.setText("Current stack: ");
this.setLayout(null);
jLayeredPane.setLayout(null);
jLayeredPane.add(jTitle, null);
//jLayeredPane.add(jTitle2, null);
jLayeredPane.add(getJButtonAccept(), null);
jLayeredPane.add(getJButtonResponse(), null);
makeTransparent(jLayeredPane);
}
代码示例来源:origin: magefree/mage
final JLayeredPane jLayeredBackgroundPane = new JLayeredPane();
jLayeredBackgroundPane.setSize(1024, 768);
this.add(jLayeredBackgroundPane);
代码示例来源:origin: ron190/jsql-injection
this.horizontalScrollBar.setUI(new MyScrollBarUI());
JLayeredPane layeredPane = new JLayeredPane();
layeredPane.setLayer(this.verticalScrollBar, JLayeredPane.PALETTE_LAYER);
layeredPane.setLayer(this.horizontalScrollBar, JLayeredPane.PALETTE_LAYER);
代码示例来源:origin: stackoverflow.com
public void mouseClicked(MouseEvent e){
new Casino();
new JLayeredPane();
System.out.println(Casino.p[0].getpHand()[0].getValue());
}
代码示例来源:origin: stackoverflow.com
public TestGameBoard() {
layeredPane = new JLayeredPane();
layeredPane.setPreferredSize(new Dimension(680, 680));
layeredPane.setBackground(Color.GREEN);
layeredPane.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
layeredPane.setOpaque(true);
setLayout(new BorderLayout()); // Easy to use layout manager
add(layeredPane); // Now I'm visible ;)
}
代码示例来源:origin: stackoverflow.com
JPanel normalContents = new JPanel();
layer.add(normalContents, JLayeredPane.DEFAULT_LAYER);
JLayeredPane subMenuAuxiliaryLayer = new JLayeredPane()
subMenuAuxiliaryLayer.setLayout(new BoxLayout(subMenuAuxiliaryLayer, BoxLayout.LINE_AXIS));
layer.add(subMenuAuxiliaryLayer, JLayeredPane.PALETTE_LAYER);
JPanel submenuContents = new JPanel();
subMenuAuliliaryLayer.add(submenuContents);
subMenuAuxiliaryLayer.add(Box.createHorizontalGlue());
代码示例来源:origin: stackoverflow.com
public JPanelParent() throws HeadlessException {
JPanel nPanel = getNode(10, 10, 20, 20, Color.red, 1);
JPanel nPanel2 = getNode(20, 20, 20, 20, Color.yellow, 2);
JPanel nPanel3 = getNode(30, 30, 20, 20, Color.green, 3);
JLayeredPane pane = new JLayeredPane();
pane.add(nPanel, new Integer(1));
pane.add(nPanel2, new Integer(2));
pane.add(nPanel3, new Integer(3));
setContentPane(pane);
getContentPane().setBackground(Color.BLACK);
}
代码示例来源:origin: stackoverflow.com
JLayeredPane layeredFooPane = new JLayeredPane();
// The magic!
layeredFooPane.setLayout(new LayeredPaneLayout(layeredPane));
// Add components:
layeredFooPane.add(fooComponent, new Integer(JLayeredPane.DEFAULT_LAYER + 10));
layeredFooPane.add(barComponent, JLayeredPane.DEFAULT_LAYER);
代码示例来源:origin: stackoverflow.com
JPanel p1 = new JPanel(new BoxLayout(p1, BoxLayout.X_AXIS));
JPanel p2 = new JPanel(new BoxLayout(p2, BoxLayout.Y_AXIS));
JLayeredPane lp = new JLayeredPane();
lp.add(p1, 1);
lp.add(p2, 0);
p1.setSize(lp.getPreferredSize());
p2.setSize(lp.getPreferredSize());
内容来源于网络,如有侵权,请联系作者删除!