Floating Button
Last updated
Was this helpful?
Was this helpful?
Image ic = null;
try {
ic = new Image("images/floatbtn.png");
} catch (IOException e) {
e.printStackTrace();
} catch (ImageException e) {
e.printStackTrace();
}
FloatingButton floatbutton = new FloatingButton(ic);
floatbutton.setBackColor(Color.getRGB(109, 156, 232));
floatbutton.setIconSize(30);
add(floatbutton, RIGHT-40, BOTTOM-40);