本文整理了Java中java.awt.Panel.setName()
方法的一些代码示例,展示了Panel.setName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Panel.setName()
方法的具体详情如下:
包路径:java.awt.Panel
类名称:Panel
方法名:setName
暂无
代码示例来源:origin: stackoverflow.com
public void NewPanel(Frame fm)
{
Panel p= new Panel(null);
fm.add(p);
//p.setSize(100, 100);
p.setBounds(10,10,250,100);
p.setName("Panel");
p.add(new JLabel("Test"));
p.setVisible(true);
}
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the RightPanel property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getRightPanel() {
if (ivjRightPanel == null) {
try {
ivjRightPanel = new java.awt.Panel();
ivjRightPanel.setName("RightPanel");
ivjRightPanel.setLayout(null);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjRightPanel;
}
/**
代码示例来源:origin: stackoverflow.com
public void NewPanel(Frame fm)
{
Panel p= new Panel(null);
fm.add(p);
//p.setSize(100, 100);
p.setBounds(10,10,250,100);
p.setName("Panel");
p.setVisible(true);
}
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the LeftPanel property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getLeftPanel() {
if (ivjLeftPanel == null) {
try {
ivjLeftPanel = new java.awt.Panel();
ivjLeftPanel.setName("LeftPanel");
ivjLeftPanel.setLayout(null);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjLeftPanel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the BottomPanel property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getBottomPanel() {
if (ivjBottomPanel == null) {
try {
ivjBottomPanel = new java.awt.Panel();
ivjBottomPanel.setName("BottomPanel");
ivjBottomPanel.setLayout(null);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjBottomPanel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the RightPanel property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getRightPanel() {
if (ivjRightPanel == null) {
try {
ivjRightPanel = new java.awt.Panel();
ivjRightPanel.setName("RightPanel");
ivjRightPanel.setLayout(null);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjRightPanel;
}
/**
代码示例来源:origin: fr.ifremer/isis-fish
$Panel0.setName("$Panel0");
createRadioPopulationSeasonGroupChangeLengthNoSpacialized();
createRadioPopulationSeasonGroupChangeLengthSpacialized();
$Panel1.setName("$Panel1");
createMatrixPanelPopulationSeasonLengthChange();
createRadioPopulationSeasonGroupChangeLengthSpacializedGroup();
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the WorkPanel property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getWorkPanel() {
if (ivjWorkPanel == null) {
try {
ivjWorkPanel = new java.awt.Panel();
ivjWorkPanel.setName("WorkPanel");
ivjWorkPanel.setLayout(new java.awt.BorderLayout());
getWorkPanel().add(getMessageLabel(), "Center");
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjWorkPanel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
try {
ivjChoicePanel = new java.awt.Panel();
ivjChoicePanel.setName("ChoicePanel");
ivjChoicePanel.setLayout(new java.awt.GridBagLayout());
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the WorkPanel property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getWorkPanel() {
if (ivjWorkPanel == null) {
try {
ivjWorkPanel = new java.awt.Panel();
ivjWorkPanel.setName("WorkPanel");
ivjWorkPanel.setLayout(null);
ivjWorkPanel.setBackground(java.awt.Color.lightGray);
ivjWorkPanel.setLocation(0, 0);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjWorkPanel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the ContentsPane property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getContentsPane() {
if (ivjContentsPane == null) {
try {
ivjContentsPane = new java.awt.Panel();
ivjContentsPane.setName("ContentsPane");
ivjContentsPane.setLayout(new java.awt.BorderLayout());
getContentsPane().add(getButtonPanel(), "South");
getContentsPane().add(getWorkPanel(), "Center");
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjContentsPane;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the ContentsPane property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getContentsPane() {
if (ivjContentsPane == null) {
try {
ivjContentsPane = new java.awt.Panel();
ivjContentsPane.setName("ContentsPane");
ivjContentsPane.setLayout(new java.awt.BorderLayout());
ivjContentsPane.setBackground(java.awt.SystemColor.control);
getContentsPane().add(getButtonPanel(), "South");
getContentsPane().add(getInnerPanel(), "Center");
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjContentsPane;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the InnerPanel property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getInnerPanel() {
if (ivjInnerPanel == null) {
try {
ivjInnerPanel = new java.awt.Panel();
ivjInnerPanel.setName("InnerPanel");
ivjInnerPanel.setLayout(new java.awt.BorderLayout());
ivjInnerPanel.setBackground(java.awt.SystemColor.control);
getInnerPanel().add(getHeaderPanel(), "North");
getInnerPanel().add(getScrollPane(), "Center");
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjInnerPanel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the ContentsPane property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getContentsPane() {
if (ivjContentsPane == null) {
try {
ivjContentsPane = new java.awt.Panel();
ivjContentsPane.setName("ContentsPane");
ivjContentsPane.setLayout(new java.awt.BorderLayout());
ivjContentsPane.setBackground(java.awt.SystemColor.control);
getContentsPane().add(getButtonPanel(), "South");
getContentsPane().add(getConsolePanel(), "Center");
getContentsPane().add(getPOAStatePanel(), "North");
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjContentsPane;
}
private Label _getIdAssignmentLabel() {
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the ButtonPanel property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getButtonPanel() {
if (ivjButtonPanel == null) {
try {
ivjButtonPanel = new java.awt.Panel();
ivjButtonPanel.setName("ButtonPanel");
ivjButtonPanel.setLayout(getButtonPanelFlowLayout());
getButtonPanel().add(getHideButton(), getHideButton().getName());
getButtonPanel().add(getClearButton(), getClearButton().getName());
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjButtonPanel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the ContentsPane property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getContentsPane() {
if (ivjContentsPane == null) {
try {
ivjContentsPane = new java.awt.Panel();
ivjContentsPane.setName("ContentsPane");
ivjContentsPane.setLayout(getContentsPaneBorderLayout());
ivjContentsPane.setBackground(java.awt.SystemColor.control);
getContentsPane().add(getButtonPanel(), "South");
getContentsPane().add(getConsolePanel(), "Center");
getContentsPane().add(getPOAManagerStatePanel(), "North");
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjContentsPane;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the InnerPanel property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getInnerPanel() {
if (ivjInnerPanel == null) {
try {
ivjInnerPanel = new java.awt.Panel();
ivjInnerPanel.setName("InnerPanel");
ivjInnerPanel.setLayout(null);
ivjInnerPanel.setBackground(java.awt.Color.lightGray);
ivjInnerPanel.setBounds(0, 1, 1200, 13);
getInnerPanel().add(getRequestLabel(), getRequestLabel().getName());
getInnerPanel().add(getObjectLabel(), getObjectLabel().getName());
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjInnerPanel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the Panel1 property value.
* @return java.awt.Panel
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getInnerPanel() {
if (ivjInnerPanel == null) {
try {
ivjInnerPanel = new java.awt.Panel();
ivjInnerPanel.setName("InnerPanel");
ivjInnerPanel.setLayout(null);
ivjInnerPanel.setBackground(java.awt.Color.lightGray);
ivjInnerPanel.setBounds(0, 1, 1200, 13);
getInnerPanel().add(getObjectLabel(), getObjectLabel().getName());
getInnerPanel().add(getServantLabel(), getServantLabel().getName());
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjInnerPanel;
}
/**
代码示例来源:origin: IanDarwin/javasrc
p.setName("crsPanel");
crsCBG = new CheckboxGroup();
p.add(Checkbox1);
p.setName("instrPanel");
instrCBG = new CheckboxGroup();
p.add(Checkbox11);
p.setName("pacePanel");
paceCBG = new CheckboxGroup();
Checkbox cb;
代码示例来源:origin: org.jacorb/jacorb
try {
ivjTablePanel = new java.awt.Panel();
ivjTablePanel.setName("TablePanel");
ivjTablePanel.setLocation(new java.awt.Point(9, 35));
ivjTablePanel.setLayout(null);
内容来源于网络,如有侵权,请联系作者删除!