Annotation Type SwingWindow


@Retention(RUNTIME)
@Target({TYPE,FIELD})
public @interface SwingWindow
In some special situations the parent component each other components are added to is a window-like component. To use some special attributes with this annotation there are three extra methods that can be used.
Since:
1.0
See Also:
Swing
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    boolean alwaysOnTop
    Sets whether this window component should always be above other windows.
    int closeOperation
    Sets the operation that will happen by default when the user initiates a "close" on this frame component.
    java.lang.Class<? extends LAFProvider> provider  
    boolean resizable  
    int value  
  • Element Details

    • value

      int value
      Returns:
      The order this component is added to the parent component.
      Default:
      1
    • provider

      java.lang.Class<? extends LAFProvider> provider
      Returns:
      the class of the LAFProvider that should be used.
      Default:
      org.proto4j.swing.laf.DefaultLAFProvider.class
    • closeOperation

      int closeOperation
      Sets the operation that will happen by default when the user initiates a "close" on this frame component.
      Returns:
      the closing operation
      Default:
      3
    • resizable

      boolean resizable
      Returns:
      whether this frame component is resizable by the user.
      See Also:
      Frame.setResizable(boolean)
      Default:
      true
    • alwaysOnTop

      boolean alwaysOnTop
      Sets whether this window component should always be above other windows. If there are multiple always-on-top windows, their relative order is unspecified and platform dependent.
      Returns:
      whether this window component should always be above other windows
      See Also:
      Window.setAlwaysOnTop(boolean)
      Default:
      false