Module org.jpo

Class LabelFrame

java.lang.Object
org.jpo.gui.swing.LabelFrame

public class LabelFrame extends Object
Creates a JFrame that holds a centred JLabel.
  • Constructor Details

    • LabelFrame

      public LabelFrame(String title)
      Constructs the LabelFrame. Is EventDispatchThread safe. I.e. will execute synchronously if on EDT else will invokeAndWait.
      Parameters:
      title - The title for the JFrame
  • Method Details

    • update

      public void update(String message)
      Updates the label with the supplied message
      Parameters:
      message - the message to show in the label
    • getRid

      public void getRid()
      method that closes the frame and gets rid of it