本文整理匯總了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);
}