[[pole3]]
 

http://kmlinux/~culik/wiki

package javaapplication11;
 
import javax.swing.*;
 
public class Window extends javax.swing.JFrame {
 
    public Window() {
        initComponents();
    }
 
    private void display (int [] t)
    {
        if (t != null)
        {
            // import javax.swing.*;
            JToolBar q = new JToolBar ();
            area.add (q);
            for (int j = 0; j < t.length; j ++)
            {
                JButton b = new JButton ();
                b.setText ("" + t[j]);
                q.add (b);
            }
        }
    }
    private void display (int [] [] p)
    {
        if (p != null)
            for (int i = 0; i < p.length; i++)
                display (p[i]);
    }
 
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        int [] [] a = { { 1, 2, 3 }, { 10, 20 }};
        display (a);
    }                                        
 
}
 
pole3.txt · Last modified: 2016/10/20 16:06 by 147.32.8.115
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki