javax.swing.JInternalFrame.getTitle()方法的使用及代码示例

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

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

JInternalFrame.getTitle介绍

暂无

代码示例

代码示例来源:origin: chewiebug/GCViewer

/**
   * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
   */
  @Override
  public void propertyChange(final PropertyChangeEvent evt) {
    putValue(Action.NAME, internalFrame.getTitle());
  }
}

代码示例来源:origin: chewiebug/GCViewer

public WindowMenuItemAction(final InternalFrameEvent e) {
  this.internalFrame = e.getInternalFrame();
  putValue(Action.NAME, internalFrame.getTitle());
  this.internalFrame.addPropertyChangeListener("title", this);
}

代码示例来源:origin: geotools/geotools

case -TITLE:
    value = window.getTitle();
    return;

代码示例来源:origin: magefree/mage

JInternalFrame[] windows = desktopPane.getAllFramesInLayer(javax.swing.JLayeredPane.DEFAULT_LAYER);
for (JInternalFrame frame : windows) {
  if (frame.getTitle().equals("Waiting for players")) {
    frame.toFront();
    frame.setVisible(true);

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf

/**
 * Gets the Title attribute of the InternalFrameWindow object
 * 
 * @return The Title value
 */
public String getTitle() {
 return frame.getTitle();
}

代码示例来源:origin: fcrepo3/fcrepo

public ChildMenuItem(JInternalFrame frame) {
  super(frame.getTitle());
  this.frame = frame;
}

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

final JMenu JMWindows = new JMenu("Opened Windows");                
 JMWindows.addActionListener(new ActionListener() {          
   @Override
   public void actionPerformed(ActionEvent e) {
     for(JInternalFrame ji : desktop.getAllFrames())
     {
       JMenuItem menuItem = new JMenuItem(ji.getTitle());
       JMWindows.add(menuItem);
     }               
   }
 });

代码示例来源:origin: robotframework/SwingLibrary

private String componentToString(Component component) {
    String title = ((JInternalFrame)component).getTitle();
    if (!"".equals(title))
      return title;
    String componentString = component.toString();
    int indexToStartOfDetails = componentString.indexOf('[');
    if (indexToStartOfDetails == -1)
      return componentString;
    return componentString.substring(0, indexToStartOfDetails);
  }
}

代码示例来源:origin: org.fudaa.framework.fudaa/fudaa-common

protected void setValue(final Object _value) {
  setText(_value == null ? CtuluLibString.EMPTY_STRING : ((JInternalFrame) _value).getTitle());
 }
};

代码示例来源:origin: abbot/abbot

public static String getTitle(Component c) {
            if (c instanceof Dialog)
              return ((Dialog)c).getTitle();
            else if (c instanceof Frame) 
              return ((Frame)c).getTitle();
            else if (c instanceof JInternalFrame)
              return ((JInternalFrame)c).getTitle();
            return null;
          }
/** Returns whether it is possible to resize windows that are not an

代码示例来源:origin: com.github.insubstantial/substance

/**
 * Simple constructor.
 * 
 * @param f
 *            Associated internal frame.
 */
public SubstanceInternalFrameTitlePane(JInternalFrame f) {
  super(f);
  this.setToolTipText(f.getTitle());
  SubstanceLookAndFeel.setDecorationType(this,DecorationAreaType.SECONDARY_TITLE_PANE);
}

代码示例来源:origin: org.java.net.substance/substance

/**
 * Simple constructor.
 * 
 * @param f
 *            Associated internal frame.
 */
public SubstanceInternalFrameTitlePane(JInternalFrame f) {
  super(f);
  this.setToolTipText(f.getTitle());
  SubstanceLookAndFeel.setDecorationType(this,
      DecorationAreaType.SECONDARY_TITLE_PANE);
}

代码示例来源:origin: de.sciss/scisslib

public String getTitle()
{
  if( f != null ) {
    return f.getTitle();
  } else if( d != null ) {
    return d.getTitle();
  } else if( jif != null ) {
    return jif.getTitle();
  } else {
    return null; // throw new IllegalStateException();
  }
}

代码示例来源:origin: bcdev/beam

@Override
  public void propertyChange(PropertyChangeEvent evt) {
    final InternalFrameProxy placeHolder = getPlaceHolderFor(internalFrame);
    final int index = tabbedPane.indexOfComponent(placeHolder);
    if (index > -1) {
      tabbedPane.setTitleAt(index, internalFrame.getTitle());
    }
  }
});

代码示例来源:origin: com.mgmtp.gcviewer/gcviewer

public WindowMenuItemAction(final InternalFrameEvent e) {
  this.internalFrame = e.getInternalFrame();
  putValue(Action.NAME, internalFrame.getTitle());
  this.internalFrame.addPropertyChangeListener("title", this);
}

代码示例来源:origin: UISpec4J/UISpec4J

public void check() {
  JInternalFrame[] allFrames = jDesktopPane.getAllFrames();
  for (JInternalFrame allFrame : allFrames) {
   if (Utils.equals(title, allFrame.getTitle())) {
    return;
   }
  }
  AssertAdapter.fail("No window with title '" + title + "' found");
 }
};

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu

public void print() {
 JInternalFrame frame = getMainPanel().getCurrentInternalFrame();
 if (frame instanceof BuPrintable) {
  BuPrinter.print(this, frame.getTitle(), (BuPrintable) frame);
 } else {
  BuInformationsSoftware il = getInformationsSoftware();
  new BuDialogError(this, il, _("L'impression n'est pas disponible pour") + "\"" + frame.getTitle() + "\".")
    .activate();
 }
}

代码示例来源:origin: org.fudaa.framework.fudaa/fudaa-common

protected void setValue(final Object _value) {
  final JInternalFrame f = (JInternalFrame) _value;
  setText(f.getTitle());
  final Icon frameIcon = f.getFrameIcon();
  setIcon(frameIcon == null ? BuResource.BU.getToolIcon("bu_internalframe_corner_ocean") : frameIcon);
 }
};

代码示例来源:origin: bcdev/beam

private void addTabFor(JInternalFrame internalFrame) {
  final InternalFrameProxy placeHolder = getPlaceHolderFor(internalFrame);
  if (placeHolder == null) {
    tabbedPane.addTab(internalFrame.getTitle(), new InternalFrameProxy(internalFrame));
    updateTabbedPaneVisibility();
  }
}

代码示例来源:origin: org.fudaa.framework.fudaa/fudaa-common

protected void setValue(Object _value) {
  JInternalFrame internalFrame = (JInternalFrame) _value;
  setIcon((internalFrame).getFrameIcon());
  setToolTipText((internalFrame).getTitle());
  // setBackground(Color.ORANGE);
  setOpaque(((FudaaInternalFrameModel) getModel()).desk_.getSelectedFrame() == internalFrame);
  setBorder(border_);
 }
}

相关文章

JInternalFrame类方法