java.awt.Panel.setName()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(9.9k)|赞(0)|评价(0)|浏览(241)

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

Panel.setName介绍

暂无

代码示例

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

  1. public void NewPanel(Frame fm)
  2. {
  3. Panel p= new Panel(null);
  4. fm.add(p);
  5. //p.setSize(100, 100);
  6. p.setBounds(10,10,250,100);
  7. p.setName("Panel");
  8. p.add(new JLabel("Test"));
  9. p.setVisible(true);
  10. }

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the RightPanel property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getRightPanel() {
  7. if (ivjRightPanel == null) {
  8. try {
  9. ivjRightPanel = new java.awt.Panel();
  10. ivjRightPanel.setName("RightPanel");
  11. ivjRightPanel.setLayout(null);
  12. // user code begin {1}
  13. // user code end
  14. } catch (java.lang.Throwable ivjExc) {
  15. // user code begin {2}
  16. // user code end
  17. handleException(ivjExc);
  18. }
  19. };
  20. return ivjRightPanel;
  21. }
  22. /**

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

  1. public void NewPanel(Frame fm)
  2. {
  3. Panel p= new Panel(null);
  4. fm.add(p);
  5. //p.setSize(100, 100);
  6. p.setBounds(10,10,250,100);
  7. p.setName("Panel");
  8. p.setVisible(true);
  9. }

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the LeftPanel property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getLeftPanel() {
  7. if (ivjLeftPanel == null) {
  8. try {
  9. ivjLeftPanel = new java.awt.Panel();
  10. ivjLeftPanel.setName("LeftPanel");
  11. ivjLeftPanel.setLayout(null);
  12. // user code begin {1}
  13. // user code end
  14. } catch (java.lang.Throwable ivjExc) {
  15. // user code begin {2}
  16. // user code end
  17. handleException(ivjExc);
  18. }
  19. };
  20. return ivjLeftPanel;
  21. }
  22. /**

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the BottomPanel property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getBottomPanel() {
  7. if (ivjBottomPanel == null) {
  8. try {
  9. ivjBottomPanel = new java.awt.Panel();
  10. ivjBottomPanel.setName("BottomPanel");
  11. ivjBottomPanel.setLayout(null);
  12. // user code begin {1}
  13. // user code end
  14. } catch (java.lang.Throwable ivjExc) {
  15. // user code begin {2}
  16. // user code end
  17. handleException(ivjExc);
  18. }
  19. };
  20. return ivjBottomPanel;
  21. }
  22. /**

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the RightPanel property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getRightPanel() {
  7. if (ivjRightPanel == null) {
  8. try {
  9. ivjRightPanel = new java.awt.Panel();
  10. ivjRightPanel.setName("RightPanel");
  11. ivjRightPanel.setLayout(null);
  12. // user code begin {1}
  13. // user code end
  14. } catch (java.lang.Throwable ivjExc) {
  15. // user code begin {2}
  16. // user code end
  17. handleException(ivjExc);
  18. }
  19. };
  20. return ivjRightPanel;
  21. }
  22. /**

代码示例来源:origin: fr.ifremer/isis-fish

  1. $Panel0.setName("$Panel0");
  2. createRadioPopulationSeasonGroupChangeLengthNoSpacialized();
  3. createRadioPopulationSeasonGroupChangeLengthSpacialized();
  4. $Panel1.setName("$Panel1");
  5. createMatrixPanelPopulationSeasonLengthChange();
  6. createRadioPopulationSeasonGroupChangeLengthSpacializedGroup();

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the WorkPanel property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getWorkPanel() {
  7. if (ivjWorkPanel == null) {
  8. try {
  9. ivjWorkPanel = new java.awt.Panel();
  10. ivjWorkPanel.setName("WorkPanel");
  11. ivjWorkPanel.setLayout(new java.awt.BorderLayout());
  12. getWorkPanel().add(getMessageLabel(), "Center");
  13. // user code begin {1}
  14. // user code end
  15. } catch (java.lang.Throwable ivjExc) {
  16. // user code begin {2}
  17. // user code end
  18. handleException(ivjExc);
  19. }
  20. };
  21. return ivjWorkPanel;
  22. }
  23. /**

代码示例来源:origin: org.jacorb/jacorb

  1. try {
  2. ivjChoicePanel = new java.awt.Panel();
  3. ivjChoicePanel.setName("ChoicePanel");
  4. ivjChoicePanel.setLayout(new java.awt.GridBagLayout());

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the WorkPanel property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getWorkPanel() {
  7. if (ivjWorkPanel == null) {
  8. try {
  9. ivjWorkPanel = new java.awt.Panel();
  10. ivjWorkPanel.setName("WorkPanel");
  11. ivjWorkPanel.setLayout(null);
  12. ivjWorkPanel.setBackground(java.awt.Color.lightGray);
  13. ivjWorkPanel.setLocation(0, 0);
  14. // user code begin {1}
  15. // user code end
  16. } catch (java.lang.Throwable ivjExc) {
  17. // user code begin {2}
  18. // user code end
  19. handleException(ivjExc);
  20. }
  21. };
  22. return ivjWorkPanel;
  23. }
  24. /**

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the ContentsPane property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getContentsPane() {
  7. if (ivjContentsPane == null) {
  8. try {
  9. ivjContentsPane = new java.awt.Panel();
  10. ivjContentsPane.setName("ContentsPane");
  11. ivjContentsPane.setLayout(new java.awt.BorderLayout());
  12. getContentsPane().add(getButtonPanel(), "South");
  13. getContentsPane().add(getWorkPanel(), "Center");
  14. // user code begin {1}
  15. // user code end
  16. } catch (java.lang.Throwable ivjExc) {
  17. // user code begin {2}
  18. // user code end
  19. handleException(ivjExc);
  20. }
  21. };
  22. return ivjContentsPane;
  23. }
  24. /**

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the ContentsPane property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getContentsPane() {
  7. if (ivjContentsPane == null) {
  8. try {
  9. ivjContentsPane = new java.awt.Panel();
  10. ivjContentsPane.setName("ContentsPane");
  11. ivjContentsPane.setLayout(new java.awt.BorderLayout());
  12. ivjContentsPane.setBackground(java.awt.SystemColor.control);
  13. getContentsPane().add(getButtonPanel(), "South");
  14. getContentsPane().add(getInnerPanel(), "Center");
  15. // user code begin {1}
  16. // user code end
  17. } catch (java.lang.Throwable ivjExc) {
  18. // user code begin {2}
  19. // user code end
  20. handleException(ivjExc);
  21. }
  22. };
  23. return ivjContentsPane;
  24. }
  25. /**

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the InnerPanel property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getInnerPanel() {
  7. if (ivjInnerPanel == null) {
  8. try {
  9. ivjInnerPanel = new java.awt.Panel();
  10. ivjInnerPanel.setName("InnerPanel");
  11. ivjInnerPanel.setLayout(new java.awt.BorderLayout());
  12. ivjInnerPanel.setBackground(java.awt.SystemColor.control);
  13. getInnerPanel().add(getHeaderPanel(), "North");
  14. getInnerPanel().add(getScrollPane(), "Center");
  15. // user code begin {1}
  16. // user code end
  17. } catch (java.lang.Throwable ivjExc) {
  18. // user code begin {2}
  19. // user code end
  20. handleException(ivjExc);
  21. }
  22. };
  23. return ivjInnerPanel;
  24. }
  25. /**

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the ContentsPane property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getContentsPane() {
  7. if (ivjContentsPane == null) {
  8. try {
  9. ivjContentsPane = new java.awt.Panel();
  10. ivjContentsPane.setName("ContentsPane");
  11. ivjContentsPane.setLayout(new java.awt.BorderLayout());
  12. ivjContentsPane.setBackground(java.awt.SystemColor.control);
  13. getContentsPane().add(getButtonPanel(), "South");
  14. getContentsPane().add(getConsolePanel(), "Center");
  15. getContentsPane().add(getPOAStatePanel(), "North");
  16. // user code begin {1}
  17. // user code end
  18. } catch (java.lang.Throwable ivjExc) {
  19. // user code begin {2}
  20. // user code end
  21. handleException(ivjExc);
  22. }
  23. };
  24. return ivjContentsPane;
  25. }
  26. private Label _getIdAssignmentLabel() {

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the ButtonPanel property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getButtonPanel() {
  7. if (ivjButtonPanel == null) {
  8. try {
  9. ivjButtonPanel = new java.awt.Panel();
  10. ivjButtonPanel.setName("ButtonPanel");
  11. ivjButtonPanel.setLayout(getButtonPanelFlowLayout());
  12. getButtonPanel().add(getHideButton(), getHideButton().getName());
  13. getButtonPanel().add(getClearButton(), getClearButton().getName());
  14. // user code begin {1}
  15. // user code end
  16. } catch (java.lang.Throwable ivjExc) {
  17. // user code begin {2}
  18. // user code end
  19. handleException(ivjExc);
  20. }
  21. };
  22. return ivjButtonPanel;
  23. }
  24. /**

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the ContentsPane property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getContentsPane() {
  7. if (ivjContentsPane == null) {
  8. try {
  9. ivjContentsPane = new java.awt.Panel();
  10. ivjContentsPane.setName("ContentsPane");
  11. ivjContentsPane.setLayout(getContentsPaneBorderLayout());
  12. ivjContentsPane.setBackground(java.awt.SystemColor.control);
  13. getContentsPane().add(getButtonPanel(), "South");
  14. getContentsPane().add(getConsolePanel(), "Center");
  15. getContentsPane().add(getPOAManagerStatePanel(), "North");
  16. // user code begin {1}
  17. // user code end
  18. } catch (java.lang.Throwable ivjExc) {
  19. // user code begin {2}
  20. // user code end
  21. handleException(ivjExc);
  22. }
  23. };
  24. return ivjContentsPane;
  25. }
  26. /**

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the InnerPanel property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getInnerPanel() {
  7. if (ivjInnerPanel == null) {
  8. try {
  9. ivjInnerPanel = new java.awt.Panel();
  10. ivjInnerPanel.setName("InnerPanel");
  11. ivjInnerPanel.setLayout(null);
  12. ivjInnerPanel.setBackground(java.awt.Color.lightGray);
  13. ivjInnerPanel.setBounds(0, 1, 1200, 13);
  14. getInnerPanel().add(getRequestLabel(), getRequestLabel().getName());
  15. getInnerPanel().add(getObjectLabel(), getObjectLabel().getName());
  16. // user code begin {1}
  17. // user code end
  18. } catch (java.lang.Throwable ivjExc) {
  19. // user code begin {2}
  20. // user code end
  21. handleException(ivjExc);
  22. }
  23. };
  24. return ivjInnerPanel;
  25. }
  26. /**

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Return the Panel1 property value.
  3. * @return java.awt.Panel
  4. */
  5. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  6. private java.awt.Panel getInnerPanel() {
  7. if (ivjInnerPanel == null) {
  8. try {
  9. ivjInnerPanel = new java.awt.Panel();
  10. ivjInnerPanel.setName("InnerPanel");
  11. ivjInnerPanel.setLayout(null);
  12. ivjInnerPanel.setBackground(java.awt.Color.lightGray);
  13. ivjInnerPanel.setBounds(0, 1, 1200, 13);
  14. getInnerPanel().add(getObjectLabel(), getObjectLabel().getName());
  15. getInnerPanel().add(getServantLabel(), getServantLabel().getName());
  16. // user code begin {1}
  17. // user code end
  18. } catch (java.lang.Throwable ivjExc) {
  19. // user code begin {2}
  20. // user code end
  21. handleException(ivjExc);
  22. }
  23. };
  24. return ivjInnerPanel;
  25. }
  26. /**

代码示例来源:origin: IanDarwin/javasrc

  1. p.setName("crsPanel");
  2. crsCBG = new CheckboxGroup();
  3. p.add(Checkbox1);
  4. p.setName("instrPanel");
  5. instrCBG = new CheckboxGroup();
  6. p.add(Checkbox11);
  7. p.setName("pacePanel");
  8. paceCBG = new CheckboxGroup();
  9. Checkbox cb;

代码示例来源:origin: org.jacorb/jacorb

  1. try {
  2. ivjTablePanel = new java.awt.Panel();
  3. ivjTablePanel.setName("TablePanel");
  4. ivjTablePanel.setLocation(new java.awt.Point(9, 35));
  5. ivjTablePanel.setLayout(null);

相关文章