Beispiel #1
0
  @Signature(@Arg("value"))
  public Memory __setMaximized(Environment env, Memory... args) {
    if (args[0].toBoolean()) {
      frame.setExtendedState(frame.getExtendedState() | Frame.MAXIMIZED_BOTH);
    } else {
      frame.setExtendedState(Frame.NORMAL);
    }

    return Memory.NULL;
  }
Beispiel #2
0
 @Signature
 protected Memory __getMaximized(Environment env, Memory... args) {
   return (frame.getExtendedState() & Frame.MAXIMIZED_BOTH) == Frame.MAXIMIZED_BOTH
       ? Memory.TRUE
       : Memory.FALSE;
 }