4 * Created on 7. prosinec 2007, 22:33
7 package cz.frantovo.superPostak;
10 import org.jdesktop.swingx.JXGraph.Plot;
16 public class GrafPokus extends javax.swing.JFrame {
18 /** Creates new form GrafPokus */
22 mujGraf.addPlots(Color.GREEN, new Plot(){
25 public double compute(double value) {
32 /** This method is called from within the constructor to
33 * initialize the form.
34 * WARNING: Do NOT modify this code. The content of this method is
35 * always regenerated by the Form Editor.
37 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
38 private void initComponents() {
40 mujGraf = new org.jdesktop.swingx.JXGraph();
42 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
44 javax.swing.GroupLayout mujGrafLayout = new javax.swing.GroupLayout(mujGraf);
45 mujGraf.setLayout(mujGrafLayout);
46 mujGrafLayout.setHorizontalGroup(
47 mujGrafLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
48 .addGap(0, 465, Short.MAX_VALUE)
50 mujGrafLayout.setVerticalGroup(
51 mujGrafLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
52 .addGap(0, 422, Short.MAX_VALUE)
55 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
56 getContentPane().setLayout(layout);
57 layout.setHorizontalGroup(
58 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
59 .addGroup(layout.createSequentialGroup()
61 .addComponent(mujGraf, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
64 layout.setVerticalGroup(
65 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
66 .addGroup(layout.createSequentialGroup()
68 .addComponent(mujGraf, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
73 }// </editor-fold>//GEN-END:initComponents
76 * @param args the command line arguments
78 public static void main(String args[]) {
79 java.awt.EventQueue.invokeLater(new Runnable() {
81 new GrafPokus().setVisible(true);
86 // Variables declaration - do not modify//GEN-BEGIN:variables
87 private org.jdesktop.swingx.JXGraph mujGraf;
88 // End of variables declaration//GEN-END:variables