本文整理了Java中javax.swing.JLayeredPane.setBounds()
方法的一些代码示例,展示了JLayeredPane.setBounds()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLayeredPane.setBounds()
方法的具体详情如下:
包路径:javax.swing.JLayeredPane
类名称:JLayeredPane
方法名:setBounds
暂无
代码示例来源:origin: stackoverflow.com
frame.setLayout(new BorderLayout());
frame.add(lpane, BorderLayout.CENTER);
lpane.setBounds(0, 0, 600, 400);
panelBlue.setBackground(Color.BLUE);
panelBlue.setBounds(0, 0, 600, 400);
代码示例来源:origin: magefree/mage
pnlText.setBounds(20, 150, 570, 90);
代码示例来源:origin: stackoverflow.com
void start(int numofplayer_int) {
JLayeredPane lpane = new JLayeredPane();
lpane.setBounds(0, 0, 1200, 750);
JPanel background = new WallPaper();
//background.setBounds(0, 0, 1200, 750);
background.setOpaque(true);
//this.setBounds(100, 100, 400, 400);
this.setBounds(0,0,1200,750);
this.setOpaque(false);
lpane.add(background, new Integer(0), 0);
lpane.add(this, new Integer(1), 0);
Utility.ChangeJLPanel(lpane);
}
代码示例来源:origin: stackoverflow.com
void start() // don't need the parameter anymore
{
JLayeredPane lpane = new JLayeredPane();
lpane.setBounds(0, 0, 1200, 750);
JPanel background = new WallPaper();
//background.setBounds(0, 0, 1200, 750);
background.setOpaque(true);
// Update self
//this.setBounds(100, 100, 400, 400);
this.setBounds(0,0,1200,750);
this.setOpaque(false);
lpane.add(background, new Integer(0), 0);
lpane.add(this, new Integer(1), 0);
Utility.ChangeJLPanel(lpane);
}
代码示例来源:origin: stackoverflow.com
jlp.setBounds(0, 0, 1000, 500);
jlp.add(button1);
frame2.add(jlp);
代码示例来源:origin: stackoverflow.com
public void createAndShowGUI() {
setTitle("Transparent Panel");
setDefaultCloseOperation(EXIT_ON_CLOSE);
setUndecorated(true);
AWTUtilities.setWindowOpaque(this, false);
JLayeredPane layeredPane = new JLayeredPane();
layeredPane.setBounds(0, 0, 315, 610);
JLabel mobileImageLabel = new JLabel(new ImageIcon("C://Mobile.png"));
mobileImageLabel.setBounds(0, 0, 315, 610);
layeredPane.add(mobileImageLabel, Integer.valueOf(0));
JLabel textLabel = new JLabel(" Booting... ");
textLabel.setVerticalAlignment(SwingConstants.TOP);
textLabel.setForeground(Color.GREEN);
textLabel.setBounds(26, 59, 263, 495);
layeredPane.add(textLabel, Integer.valueOf(1));
setContentPane(layeredPane);
setSize(315, 610);
setLocation(800, 100);
setVisible(true);
}
代码示例来源:origin: MegaMek/mekhq
@Override
protected void paintComponent(Graphics g) {
int width = getWidth();
int height = getHeight();
pane.setBounds(0, 0, width, height);
mapPanel.setBounds(0, 0, width, height);
optionView.setBounds(width - 10 - optionView.getWidth(), height - 10 - optionView.getHeight(), optionView.getWidth(), optionView.getHeight());
super.paintComponent(g);
}
代码示例来源:origin: org.japura/japura-gui
y += height + titleSeparator;
height = getHeight() - y - insets.bottom;
layeredPane.setBounds(x, y, width, height);
layeredPane.setBounds(0, 0, 0, 0);
代码示例来源:origin: de.richtercloud/flexdock-core
@Override
public void layoutContainer(Container parent) {
Rectangle bounds = parent.getBounds();
Insets insets = pane.getInsets();
// substract insets
int w = bounds.width - insets.right - insets.left;
int h = bounds.height - insets.top - insets.bottom;
JLayeredPane layeredPane = pane.getLayeredPane();
if (layeredPane != null) {
layeredPane.setBounds(insets.left, insets.top, w, h); // x, y, w, h
}
Component glassPane = pane.getGlassPane();
if (glassPane != null) {
glassPane.setBounds(insets.left, insets.top, w, h);
}
// Note: This is laying out the children in the layeredPane,
// technically, these are not our children.
int contentY = 0;
Container contentPane = pane.getContentPane();
if (contentPane != null) {
contentPane.setBounds(0, contentY, w, h - contentY); // x, y, w, h
}
}
代码示例来源:origin: stackoverflow.com
setSize(WIDTH, HEIGHT);
JLayeredPane jLP = new JLayeredPane();
jLP.setBounds(0,0,800,600);
ml = new MediaLocator("vfw:Microsoft WDM Image Capture (Win32):0");
try {
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
layeredPane.setBounds(i.left, i.top, w, h);
代码示例来源:origin: org.gephi/desktop-banner
rootPane.getLayeredPane().setBounds(x, y, w, h);
代码示例来源:origin: nl.cloudfarming.client/menu
rootPane.getLayeredPane().setBounds(x, y, w, h);
代码示例来源:origin: com.jtattoo/JTattoo
root.getLayeredPane().setBounds(i.left, i.top, w, h);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf
root.getLayeredPane().setBounds(i.left, i.top, w, h);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/napkinlaf
root.getLayeredPane().setBounds(i.left, i.top, w, h);
代码示例来源:origin: org.java.net.substance/substance
root.getLayeredPane().setBounds(i.left, i.top, w, h);
代码示例来源:origin: com.github.insubstantial/substance
root.getLayeredPane().setBounds(i.left, i.top, w, h);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
root.getLayeredPane().setBounds(i.left, i.top, w, h);
代码示例来源:origin: khuxtable/seaglass
root.getLayeredPane().setBounds(i.left, i.top, w, h);
内容来源于网络,如有侵权,请联系作者删除!