Class FFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
FFrameLauncher, FFrameMain

public class FFrame extends JFrame
Main container in GUI.
Author:
Hydrolien
See Also:
  • Constructor Details

    • FFrame

      protected FFrame(String title, int width, int height, boolean fullScreen)
      Main constructor.
      Parameters:
      title - title of the Frame
      width - with of the Frame
      height - height of the Frame
      fullScreen - true if Frame need to be in full screen
  • Method Details

    • getScreenWidth

      public static int getScreenWidth()
    • getScreenHeight

      public static int getScreenHeight()
    • iniCloseButton

      private void iniCloseButton()
      Personalise our close button to end game properly.
    • quit

      public void quit()
      Function to end game properly. If the Options is enable, we ask a validation to end game.
    • endIni

      public void endIni()
      Function to end ini by setting resizable, visible & on top.
    • toFront

      public void toFront()
      Function to set window in first plan.
      Default toFront don't work on Windows, but this one is working.
      Overrides:
      toFront in class Window