javax.swing.JFrame.isShowing()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中javax.swing.JFrame.isShowing()方法的一些代码示例,展示了JFrame.isShowing()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFrame.isShowing()方法的具体详情如下:
包路径:javax.swing.JFrame
类名称:JFrame
方法名:isShowing

JFrame.isShowing介绍

暂无

代码示例

代码示例来源:origin: vasl-developers/vasl

@Override
  public void actionPerformed(ActionEvent e) {
    frame.setVisible(!frame.isShowing());
  }
};

代码示例来源:origin: vasl-developers/vasl

public void actionPerformed(ActionEvent e) {
  frame.setVisible(!frame.isShowing());
 }
};

代码示例来源:origin: stackoverflow.com

while(!initFrame.isShowing()) {
  try {
    Thread.sleep(50);

代码示例来源:origin: javax.help/javahelp

if (! frame.isShowing()) {
  return false;

代码示例来源:origin: otros-systems/otroslogviewer

protected boolean isMatching(JFrame frame1) {
  return frame1.getTitle().startsWith("OtrosLogViewer") && frame1.isShowing();
 }
}).using(robot);

代码示例来源:origin: edu.illinois.lis/indri

} else if (act.equals("Help")) {
  if (! helpFrame.isShowing()) {
  helpFrame.setLocationRelativeTo(query);
  helpFrame.setVisible(true);

代码示例来源:origin: edu.illinois.lis/indri

if (! helpFrame.isShowing()) {
helpFrame.setLocationRelativeTo(tabbedPane);
helpFrame.setVisible(true);

代码示例来源:origin: edu.illinois.lis/indri

if (! docHtmlFrame.isShowing()) {
docHtmlFrame.setLocationRelativeTo(query);
docHtmlFrame.setVisible(true);

代码示例来源:origin: edu.illinois.lis/indri

if (! docTextFrame.isShowing()) {
  docTextFrame.setLocationRelativeTo(query);
  docTextFrame.setVisible(true);

代码示例来源:origin: edu.illinois.lis/indri

if (! docTextFrame.isShowing()) {
  docTextFrame.setLocationRelativeTo(query);
  docTextFrame.setVisible(true);

代码示例来源:origin: google/sagetv

public synchronized boolean highlightNode(Widget highlightMe)
{
 if (myFrame == null || !myFrame.isShowing()) return false;
 if (highlightMe != null)
 {
  javax.swing.tree.TreePath path = model.getPathToNode(highlightMe);
  if (path != null)
  {
   tree.setSelectionPathWithoutHighlight(path);
   if (uiMgr.getBoolean("studio/scroll_tracks_tracer", true))
    tree.scrollPathToVisible(path);
   return true;
  }
 }
 return false;
}

代码示例来源:origin: google/sagetv

public void traceOptionsMenu(Widget w)
{
 if (!myFrame.isShowing() || (!breakCheck(w, Tracer.OPTIONSMENU_TRACE) && !traceOptionsMenuEnabled)) return;
 addToTrace(new TracerOp(w, null, Tracer.OPTIONSMENU_TRACE, null));
 highlightNode(w);
 suspensionCheck(null);
}

代码示例来源:origin: google/sagetv

public void traceMenu(Widget w)
{
 if (!myFrame.isShowing() || (!breakCheck(w, Tracer.MENU_TRACE) && !traceMenuEnabled)) return;
 addToTrace(new TracerOp(w, null, Tracer.MENU_TRACE, null));
 highlightNode(w);
 suspensionCheck(null);
}

代码示例来源:origin: google/sagetv

private boolean breakCheck(Widget w, int mask)
{
 // Steps should stop on everything, not just what's enabled for tracing
 if (suspendExecution) return true;
 if (w != null && (w.getBreakpointMask() & mask) != 0)
 {
  if (Sage.DBG) System.out.println("Hit Breakpoint: " + w);
  if (((mask != Tracer.POST_CONDITIONAL_UI && mask != Tracer.POST_EVALUATE_COMPONENT_UI && mask != Tracer.POST_EVALUATE_DATA_UI)) ||
    mask == Tracer.PRE_EVALUATION)
   pauseExecution();
  if (breaksTable != null && breakpointsFrame.isShowing())
  {
   breaksTable.clearSelection();
   for (int i = 0; i < breakpoints.size(); i++)
   {
    Breakpoint bp = (Breakpoint) breakpoints.get(i);
    if (bp.getWidget() == w)
    {
     breaksTable.addRowSelectionInterval(i, i);
     breaksTable.scrollRectToVisible(breaksTable.getCellRect(i,1,true));
     break;
    }
   }
   //breaksList.setSelectedValue(getBreakpointInfo(w), true);
  }
  return true;
 }
 return false;
}
public void traceEvaluate(int evalState, String expr, Widget w, Catbert.Context con)

代码示例来源:origin: google/sagetv

public void traceHook(Widget hook, Object[] hookVars, ZPseudoComp hookUI)
{
 if (!myFrame.isShowing() || (!breakCheck(hook, Tracer.HOOK_TRACE) && !traceHookEnabled)) return;
 addToTrace(new TracerOp(hook, null, Tracer.HOOK_TRACE, null));
 highlightNode(hook);
 suspensionCheck(hookUI == null ? null : hookUI.getRelatedContext());
}

代码示例来源:origin: google/sagetv

public void traceListener(ZPseudoComp uiComp, Widget listener)
{
 if (!myFrame.isShowing() || (!breakCheck(listener, Tracer.LISTENER_TRACE) && !traceListenerEnabled)) return;
 addToTrace(new TracerOp(listener, null, Tracer.LISTENER_TRACE, null));
 highlightNode(listener);
 suspensionCheck(uiComp.getRelatedContext());
}

代码示例来源:origin: google/sagetv

public void traceUI(int traceAction, ZPseudoComp z, Widget w, Object result)
{
 if (!myFrame.isShowing() || (!breakCheck(w, traceAction) && (traceUIMask & traceAction) == 0)) return;
 addToTrace(new TracerOp(w, null, traceAction, result));
 highlightNode(w);
 // Don't suspend on the post UI stuff
 if (traceAction != Tracer.POST_CONDITIONAL_UI && traceAction != Tracer.POST_EVALUATE_COMPONENT_UI && traceAction != Tracer.POST_EVALUATE_DATA_UI)
  suspensionCheck(z.getRelatedContext());
}

代码示例来源:origin: google/sagetv

public void traceEvaluate(int evalState, String expr, Widget w, Catbert.Context con)
{
 if (!myFrame.isShowing() || (!breakCheck(w, evalState) && (traceEvaluateMask & evalState) == 0)) return;
 addToTrace(new TracerOp(w, expr, evalState, (con != null && TracerOp.hasRez(evalState)) ? con.safeLookup(null) : null));
 highlightNode(w);
 // Don't suspend execution on post evaluate
 if (evalState == Tracer.PRE_EVALUATION)
  suspensionCheck(con);
}

代码示例来源:origin: google/sagetv

public void traceEvent(ZPseudoComp currCheck, String sageCommand, long irCode, int keyCode, int keyModifiers, char keyChar)
{
 if (!myFrame.isShowing() || (!breakCheck(currCheck.getWidget(), Tracer.EVENT_TRACE) && !traceEventEnabled)) return;
 addToTrace(new TracerOp(currCheck.getWidget(), null, Tracer.EVENT_TRACE, null));
 highlightNode(currCheck.getWidget());
 suspensionCheck(currCheck.getRelatedContext());
}

代码示例来源:origin: google/sagetv

if ((diffFrame != null && diffFrame.isShowing()) || (conflictsFrame != null && conflictsFrame.isShowing()))
 return; // don't let someone do something bad

相关文章

JFrame类方法