<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.zcubes.com/index.php?action=history&amp;feed=atom&amp;title=Yurttas%2FPL%2FOOL%2FJava%2FF%2F05%2F02%2F05%2F00%2FNameButton03.java</id>
	<title>Yurttas/PL/OOL/Java/F/05/02/05/00/NameButton03.java - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.zcubes.com/index.php?action=history&amp;feed=atom&amp;title=Yurttas%2FPL%2FOOL%2FJava%2FF%2F05%2F02%2F05%2F00%2FNameButton03.java"/>
	<link rel="alternate" type="text/html" href="http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Java/F/05/02/05/00/NameButton03.java&amp;action=history"/>
	<updated>2026-05-18T16:24:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Java/F/05/02/05/00/NameButton03.java&amp;diff=177400&amp;oldid=prev</id>
		<title>MassBot1: Created page with &quot;&lt;syntaxhighlight lang=&quot;java&quot; line start=&quot;1&quot; enclose=&quot;div&quot;&gt;/**  *  Copyright(C) 1998  *  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..  *  *  P...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Java/F/05/02/05/00/NameButton03.java&amp;diff=177400&amp;oldid=prev"/>
		<updated>2013-11-07T19:48:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot; line start=&amp;quot;1&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;/**  *  Copyright(C) 1998  *  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..  *  *  P...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot; line start=&amp;quot;1&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;/**&lt;br /&gt;
 *  Copyright(C) 1998&lt;br /&gt;
 *  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..&lt;br /&gt;
 *&lt;br /&gt;
 *  Permission to use, copy, modify, and distribute this&lt;br /&gt;
 *  software and its documentation for EDUCATIONAL purposes&lt;br /&gt;
 *  and without fee is hereby granted provided that this&lt;br /&gt;
 *  copyright notice appears in all copies.&lt;br /&gt;
 *&lt;br /&gt;
 *  @date   : January 1, 1998.&lt;br /&gt;
 *  @author : Salih Yurttas.&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
import java.awt.*;&lt;br /&gt;
&lt;br /&gt;
import java.io.*;&lt;br /&gt;
&lt;br /&gt;
import sl.*;&lt;br /&gt;
&lt;br /&gt;
public class NameButton03 extends Frame {&lt;br /&gt;
&lt;br /&gt;
  public static void main(String[] args)&lt;br /&gt;
    throws IOException&lt;br /&gt;
  {&lt;br /&gt;
    Frame f = new NameButton03();&lt;br /&gt;
&lt;br /&gt;
    f.setSize(400, 320);&lt;br /&gt;
    f.show();&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  public NameButton03() &lt;br /&gt;
    throws IOException&lt;br /&gt;
  {&lt;br /&gt;
    int[] iList = {2,&lt;br /&gt;
                   3,&lt;br /&gt;
                   1,&lt;br /&gt;
                   1};&lt;br /&gt;
    int NP = iList.length;&lt;br /&gt;
&lt;br /&gt;
    setLayout(new GridLayout(NP,1));&lt;br /&gt;
&lt;br /&gt;
    Panel[] pList = new Panel[NP];&lt;br /&gt;
    int NB=0;&lt;br /&gt;
    for(int i=0; i&amp;lt;NP; i++) {&lt;br /&gt;
      NB += iList[i];&lt;br /&gt;
      pList[i] = new Panel(new GridLayout(1,iList[i]));&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    StringList lList = new StringList(NB);&lt;br /&gt;
    lList.getStringList();&lt;br /&gt;
  &lt;br /&gt;
    Button[] bList = new Button[NB];&lt;br /&gt;
    for(int i=0; i&amp;lt;NB; i++)&lt;br /&gt;
      bList[i] = new Button(lList.getStringAt(i)); &lt;br /&gt;
   &lt;br /&gt;
    int bI=0, &lt;br /&gt;
        eI=0;&lt;br /&gt;
    for(int i=0; i&amp;lt;NP; i++) {&lt;br /&gt;
      eI += iList[i];&lt;br /&gt;
      makePanel(pList, i, bList, bI, eI);&lt;br /&gt;
      add(pList[i]);&lt;br /&gt;
      bI += iList[i];&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  public void makePanel(Panel[] pList,&lt;br /&gt;
                        int pIndex,&lt;br /&gt;
                        Button[] bList,&lt;br /&gt;
                        int bBIndex,&lt;br /&gt;
                        int bEIndex) {&lt;br /&gt;
&lt;br /&gt;
    for(int i=bBIndex; i&amp;lt;bEIndex; i++)&lt;br /&gt;
      pList[pIndex].add(bList[i]);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MassBot1</name></author>
	</entry>
</feed>