javax.swing.JPanel.getName()方法的使用及代码示例

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

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

JPanel.getName介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial

public String getName() {
  if (destinationDirectoryPanel == null) {
    return null;
  }
  return destinationDirectoryPanel.getName();
}

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

panel.addMouseListener(new MouseAdapter() {
  @Override
  public void mouseClicked(MouseEvent arg0) {
    JPanel panel = (JPanel) arg0.getSource();   
    System.out.println(panel.getName());
  }
});

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@Override
  public String toString() {
    return String.format("%s [%s] count:%d", super.getName() != null ? super.getName() : "", getClass().getSimpleName(), getCount());
  }
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction(jsDoc = JS_NAME_DOC)
@Override
public String getName() {
  return super.getName();
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction(jsDoc = JS_NAME_DOC)
@Override
public String getName() {
  return super.getName();
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction(jsDoc = JS_NAME_DOC)
@Override
public String getName() {
  return super.getName();
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction
@Undesignable
@Override
public String getName() {
  return super.getName();
}

代码示例来源:origin: org.appdapter/org.appdapter.lib.gui

private static void displayFallback(Object whereFrom, Object obj, DisplayType dt) {
  BT boxed = getTreeBoxCollection().findOrCreateBox(obj);
  BoxContext bc = asBoxed(whereFrom).getBoxContext();
  JPanel pnl = boxed.getPropertiesPanel();
  if (dt == DisplayType.FRAME) {
    BoxPanelSwitchableView jtp = getBoxPanelTabPane();
    jtp.addComponent(pnl.getName(), pnl, DisplayType.FRAME);
    return;
  }
  BoxPanelSwitchableView jtp = getBoxPanelTabPane();
  jtp.addComponent(pnl.getName(), pnl, DisplayType.PANEL);
}

代码示例来源:origin: org.zaproxy/zap

private  void initialize() {
  this.setLayout(new CardLayout());
  this.setSize(474, 251);
  this.setName(Constant.messages.getString("brk.panel.title"));
  this.setIcon(new ImageIcon(BreakpointsPanel.class.getResource("/resource/icon/16/101.png")));	// 'red X' icon
  this.setDefaultAccelerator(KeyStroke.getKeyStroke(
      KeyEvent.VK_B, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() | KeyEvent.ALT_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK, false));
  this.setMnemonic(Constant.messages.getChar("brk.panel.mnemonic"));
  this.add(getPanelCommand(), getPanelCommand().getName());
}

代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-config

void changeCategory(ChangeEvent e) {
  JPanel p = (JPanel) ui.getCategories().getSelectedComponent();
  if (p == null) {
    // pas de selection
    return;
  }
  ui.getModel().setCategory(p.getName());
  ui.getCategories().invalidate();
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-config

public void changeCategory(ChangeEvent e) {
  JPanel p = (JPanel) ui.getCategories().getSelectedComponent();
  if (p == null) {
    // pas de selection
    return;
  }
  ui.getModel().setCategory(p.getName());
  ui.getCategories().invalidate();
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-config

public void changeCategory(ChangeEvent e) {
  JPanel p = (JPanel) ui.getCategories().getSelectedComponent();
  if (p == null) {
    // pas de selection
    return;
  }
  ui.getModel().setCategory(p.getName());
  ui.getCategories().invalidate();
}

代码示例来源:origin: org.zaproxy/zap

/**
 * This method initializes the Panel
 */
private void initialize() {
  this.setLayout(new CardLayout());
  this.setName(Constant.messages.getString("variant.options.title"));
  this.add(getPanelScanner(), getPanelScanner().getName());
}

代码示例来源:origin: org.zaproxy/zap

/**
 * This method initializes this
 */
private void initialize() {
  this.setLayout(new CardLayout());
  this.setName(Constant.messages.getString("cfu.options.title"));
  this.add(getPanelMisc(), getPanelMisc().getName());
}
/**

代码示例来源:origin: org.zaproxy/zap

/**
 * This method initializes this
 */
private void initialize() {
  this.setLayout(new CardLayout());
  this.setName(Constant.messages.getString("view.options.title"));
  this.add(getPanelMisc(), getPanelMisc().getName());
}
/**

代码示例来源:origin: org.zaproxy/zap

/**
 * This method initializes this
 */
private void initialize() {
  this.setLayout(new CardLayout());
  this.setName(Constant.messages.getString("conn.options.title"));
  this.add(getPanelProxyChain(), getPanelProxyChain().getName());
}

代码示例来源:origin: org.zaproxy/zap

/**
 * This method initializes this
 */
private void initialize() {
  this.setLayout(new CardLayout());
  this.setName(getPanelName(getContextIndex()));
  this.add(getPanelSession(), getPanelSession().getName());
}

代码示例来源:origin: org.zaproxy/zap

/**
 * This method initializes this
 */
private void initialize() {
  this.setLayout(new CardLayout());
  this.setName(PANEL_NAME);
  regexesPanel = new MultipleRegexesOptionsPanel(View.getSingleton().getSessionDialog());
  this.add(getPanelSession(), getPanelSession().getName());
}

代码示例来源:origin: org.zaproxy/zap

/**
 * This method initializes this
 */
private void initialize() {
  this.setLayout(new CardLayout());
  this.setName(PANEL_NAME);
  regexesPanel = new MultipleRegexesOptionsPanel(View.getSingleton().getSessionDialog());
  this.add(getPanelSession(), getPanelSession().getName());
}

代码示例来源:origin: org.zaproxy/zap

/**
 * Constructs a {@code ContextStructurePanel} for the given context.
 * 
 * @param context the target context, must not be {@code null}.
 */
public ContextStructurePanel(Context context) {
  super(context.getIndex());
  this.setLayout(new CardLayout());
  this.setName(getPanelName(this.getContextIndex()));
  this.add(getPanel(), getPanel().getName());
}

相关文章

JPanel类方法