This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 186209
Collapse All | Expand All

(-)nbm-nodesapi2.html.orig (-4 / +4 lines)
Lines 529-539 Link Here
529
    <pre class="examplecode">
529
    <pre class="examplecode">
530
530
531
public JMenuItem getPopupPresenter() {
531
public JMenuItem getPopupPresenter() {
532
    JMenu result = new JMenu("Submenu");  </pre><font color="gray">//remember JMenu is a subclass of JMenuItem</font>
532
    JMenu result = new JMenu("Submenu");  <font color="gray">//remember JMenu is a subclass of JMenuItem</font>
533
    result.add (new JMenuItem(this));
533
    result.add (new JMenuItem(this));
534
    result.add (new JMenuItem(this));
534
    result.add (new JMenuItem(this));
535
    return result;
535
    return result;
536
}
536
}</pre>
537
    
537
    
538
</li><li>Run the suite again and notice that you now have the following:
538
</li><li>Run the suite again and notice that you now have the following:
539
<img border="1" src="../images/tutorials/nodes-2/action-with-presenter-60.png" />
539
<img border="1" src="../images/tutorials/nodes-2/action-with-presenter-60.png" />
Lines 797-803 Link Here
797
        
797
        
798
        Sheet sheet = Sheet.createDefault();
798
        Sheet sheet = Sheet.createDefault();
799
        Sheet.Set set = sheet.createPropertiesSet();
799
        Sheet.Set set = sheet.createPropertiesSet();
800
        </pre><font color="blue">Sheet.Set set2 = sheet.createPropertiesSet();
800
        <font color="blue">Sheet.Set set2 = sheet.createPropertiesSet();
801
        set2.setDisplayName("Other");
801
        set2.setDisplayName("Other");
802
        set2.setName("other");</font>
802
        set2.setName("other");</font>
803
803
Lines 823-829 Link Here
823
        <font color="blue">sheet.put(set2);</font>
823
        <font color="blue">sheet.put(set2);</font>
824
        return sheet;
824
        return sheet;
825
        
825
        
826
    }
826
    }</pre>
827
    </li>
827
    </li>
828
    <li>Run the suite again, and notice that there are now buttons at the top
828
    <li>Run the suite again, and notice that there are now buttons at the top
829
    of the property sheet, and there is one property under each, as seen here:
829
    of the property sheet, and there is one property under each, as seen here:

Return to bug 186209