432433434435436437438439440441442
} } break; } if(image!=null){ fillFrame=new Background(new BackgroundImage(image, BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.CENTER, new BackgroundSize(width,height,false,false,false,true))); } resize(); });
114115116117118119120
setSize(FRAME_WIDTH, FRAME_HEIGHT); addMouseListener(this); addMouseMotionListener(this); setLocationRelativeTo(null); setResizable(false); getContentPane().add(new BackgroundImage(FRAME_WIDTH, FRAME_HEIGHT)); }