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

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

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

JInternalFrame.setTitle介绍

暂无

代码示例

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

/** Set the title of the parent frame or internal frame of the specified component. */
public static void setTitle(Component component, final String title) {
  while (component != null) {
    if (component instanceof JInternalFrame) {
      ((JInternalFrame) component).setTitle(title);
    }
    if (component instanceof Frame) {
      ((Frame) component).setTitle(title);
      return;
    }
    if (component instanceof Dialog) {
      ((Dialog) component).setTitle(title);
      return;
    }
  }
}

代码示例来源:origin: pentaho/mondrian

public void setTitle() {
  // Sets the title of Internal Frame within which this schema explorer is
  // displayed.  The title includes schema name and schema file name.
  parentIFrame.setTitle(
    getResourceConverter().getFormattedString(
      "schemaExplorer.frame.title",
      "Schema - {0} ({1}){2}",
      schema.name,
      schemaFile.getName(),
      isDirty() ? "*" : ""));
  parentIFrame.setToolTipText(schemaFile.toString());
}

代码示例来源:origin: pentaho/mondrian

jf.setTitle("About");
jf.getContentPane().add(jPanel);

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

window.setTitle((String) value);
return;

代码示例来源:origin: pentaho/mondrian

jf.setTitle(
  getResourceConverter().getFormattedString(
    "workbench.new.JDBCExplorer.title",

代码示例来源:origin: pentaho/mondrian

jf.setTitle(
  getResourceConverter().getString(
    "workbench.new.MDXQuery.title", "MDX Query"));

代码示例来源:origin: pentaho/mondrian

explorer.resetMetaData(jdbcMetaData);
jdbcFrame.setTitle(
  getResourceConverter().getFormattedString(
    "workbench.new.JDBCExplorer.title",

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

public void _setTitle(String title)
{
 super.setTitle(title);
}
@Override

代码示例来源:origin: realXuJiang/bigtable-sql

public void _setTitle(String title)
{
 super.setTitle(title);
}
@Override

代码示例来源:origin: pentaho/mondrian

schemaFrame.setTitle(
  getResourceConverter().getFormattedString(
    "workbench.open.schema.title",

代码示例来源:origin: pentaho/mondrian

while (o != null) {
  if (o.getClass() == JInternalFrame.class) {
    ((JInternalFrame) o).setTitle(
      getResourceConverter().getFormattedString(
        "queryPanel.successfulConnection.internalFrame.title",

代码示例来源:origin: org.cytoscape/swing-application-impl

private void updateNetworkFrameTitle(final CyNetworkView view, final String title) {
  if (title != null && !title.trim().isEmpty()) {
    final JInternalFrame frame = presentationContainerMap.get(view);

    if (frame != null)
      frame.setTitle(title);
  }
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * {@inheritDoc}
 */
@Override
public JInternalFrame getErrorInternalFrame(Component owner) {
  JInternalFrame frame = super.getErrorInternalFrame(owner);
  frame.setTitle(" ");
  return frame;
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

/**
 * {@inheritDoc}
 */
@Override
public JInternalFrame getErrorInternalFrame(Component owner) {
  JInternalFrame frame = super.getErrorInternalFrame(owner);
  frame.setTitle(" ");
  return frame;
}

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

@Override
  public void nodeChanged(final ProductNodeEvent event1) {
    if (event1.getSourceNode() == selectedProductNode &&
        event1.getPropertyName().equalsIgnoreCase(ProductNode.PROPERTY_NAME_NAME)) {
      internalFrame.setTitle(createInternalFrameTitle(selectedProductNode));
    }
  }
};

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

@Override
  public void nodeChanged(final ProductNodeEvent event) {
    if (event.getSourceNode() == productNode &&
        event.getPropertyName().equalsIgnoreCase(ProductNode.PROPERTY_NAME_NAME)) {
      internalFrame.setTitle(productNode.getDisplayName());
    }
  }
});

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

import javax.swing.JInternalFrame;

public class WeatherIFrame extends JInternalFrame {

  public WeatherIFrame() {
    this.setTitle("Weather");
    this.setSize(300, 200);
    this.setVisible(true);
    this.setClosable(true);
    this.setResizable(true);        
  }
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * sets the title of the parent frame, if one was provided
 */
public void updateFrameTitle() {
 if (getParentFrame() != null) {
  getParentFrame().setTitle(getFrameTitle());
 }
 if (getParentInternalFrame() != null) {
  getParentInternalFrame().setTitle(getFrameTitle());
 }
}

代码示例来源:origin: Waikato/weka-trunk

/**
 * sets the title of the parent frame, if one was provided
 */
public void updateFrameTitle() {
 if (getParentFrame() != null) {
  getParentFrame().setTitle(getFrameTitle());
 }
 if (getParentInternalFrame() != null) {
  getParentInternalFrame().setTitle(getFrameTitle());
 }
}

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

private void exchangeRasterInProductSceneView(RasterDataNode nextRaster) {
  // todo use a real ProgressMonitor
  final RasterDataNode currentRaster = currentView.getRaster();
  final ImageInfo imageInfoClone = currentRaster.getImageInfo(ProgressMonitor.NULL).createDeepCopy();
  nextRaster.setImageInfo(imageInfoClone);
  currentView.setRasters(new RasterDataNode[]{nextRaster});
  currentView.setImageInfo(imageInfoClone.createDeepCopy());
  VisatApp.getApp().getSelectedInternalFrame().setTitle(nextRaster.getDisplayName());
}

相关文章

JInternalFrame类方法