本文整理汇总了Java中org.lwjgl.opengl.Display.isVisible方法的典型用法代码示例。如果您正苦于以下问题:Java Display.isVisible方法的具体用法?Java Display.isVisible怎么用?Java Display.isVisible使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.lwjgl.opengl.Display
的用法示例。
在下文中一共展示了Display.isVisible方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TimelineFrame
import org.lwjgl.opengl.Display; //导入方法依赖的package包/类
public TimelineFrame(TimelineController controller)
{
super("Timeline");
this.controller = controller;
this.actionsPanel = new ActionPointsPanel(controller);
this.setJMenuBar(new TimelineMenuBar(controller.menubarController));
mainPanel = new JPanel();
mainPanel.add(controller.inputController.panel);
mainPanel.add(createRightPane());
setContentPane(mainPanel);
pack();
setAlwaysOnTop(true);
if(Display.isVisible())
setLocation(Display.getX() + 10, Display.getY() + 440);
else
{
setLocationRelativeTo(null);
setLocation(50, 420);
}
setResizable(false);
addWindowListener(new WindowAdapter()
{
@Override
public void windowClosing(WindowEvent e)
{
controller.close();
}
});
controller.keyframeController.panel.refresthLineColours();
}
示例2: EntitySetupFrame
import org.lwjgl.opengl.Display; //导入方法依赖的package包/类
public EntitySetupFrame(EntitySetupController controller)
{
super("Entity Setup");
this.controller = controller;
if(Display.isVisible())
setLocation(Display.getX() + 10, Display.getY() + 40);
else
{
setLocationRelativeTo(null);
setLocation(50, 420);
}
addWindowListener(new WindowAdapter()
{
@Override
public void windowClosing(WindowEvent e)
{
controller.close();
}
});
JButton doneButton = new JButton("Done");
doneButton.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent arg0)
{
controller.close();
}
});
partPanel = new EntitySetupPartPanel(controller);
parentingPanel = new EntitySetupParentingPanel(controller);
JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.add("Part Setup", partPanel);
tabbedPane.add("Parenting", parentingPanel);
JPanel mainPanel = new JPanel();
mainPanel.setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.insets = new Insets(5,5,5,5);
c.gridx = 0;
c.gridy = 0;
mainPanel.add(tabbedPane,c);
c.gridx = 0;
c.gridy = 1;
mainPanel.add(doneButton, c);
setContentPane(mainPanel);
pack();
setResizable(false);
setAlwaysOnTop(true);
}