¡@

Home 

java Programming Glossary: mainframe

JLabel images array

http://stackoverflow.com/questions/11553461/jlabel-images-array

2 private static JLabel boardLabels new JLabel 4 public MainFrame pieces 0 new JLabel new ImageIcon System.getProperty user.dir.. boardLabels 1 public static void main String args MainFrame frame new MainFrame frame.setVisible true frame.setSize 600.. 1 public static void main String args MainFrame frame new MainFrame frame.setVisible true frame.setSize 600 600 frame.setLocationRelativeTo..

Infinite background for game

http://stackoverflow.com/questions/16138363/infinite-background-for-game

javax.imageio.ImageIO import javax.swing. public class MainFrame extends JFrame private static int FRAME_WIDTH 800 private static.. FRAME_WIDTH 800 private static int FRAME_HEIGHT 500 public MainFrame add new AnotherBackground FRAME_WIDTH FRAME_HEIGHT setTitle.. setVisible true public static void main String args new MainFrame class AnotherBackground extends JPanel private BufferedImage..

Placing component on Glass Pane

http://stackoverflow.com/questions/2561690/placing-component-on-glass-pane

import javax.swing.border.LineBorder public class MainFrame extends JFrame @param args public static void main String args.. JFrame @param args public static void main String args MainFrame mf new MainFrame mf.setSize 400 400 mf.setLocationRelativeTo.. args public static void main String args MainFrame mf new MainFrame mf.setSize 400 400 mf.setLocationRelativeTo null mf.setDefaultCloseOperation..

Change Panel size on button click

http://stackoverflow.com/questions/7059278/change-panel-size-on-button-click

.getEnumName .getDimensionForScrollPaneOfChoicePanel MainFrame getTopLevelAncestor .pack ViewPanel#changeView this swaps the..