Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java flowlayout

// Allocate a Panel (container)
Panel pnl = new Panel();  
// Allocate a new Layout object. The Panel container sets to this layout.
pnl.setLayout(new FlowLayout());
// The Panel container adds components in the proper order.
pnl.add(new JLabel("One"));
pnl.add(new JLabel("Two"));
pnl.add(new JLabel("Three"));
......
Source by www3.ntu.edu.sg #
 
PREVIOUS NEXT
Tagged: #java #flowlayout
ADD COMMENT
Topic
Name
2+3 =