4 * Created on 7. prosinec 2007, 22:33
7 package cz.frantovo.superPostak;
10 import org.jdesktop.swingx.JXGraph.Plot;
13 * Tohle sem nepatří ;-)
16 public class GrafPokus extends javax.swing.JFrame {
17 private static final long serialVersionUID = 5745756301932587174L;
19 /** Creates new form GrafPokus */
23 mujGraf.addPlots(Color.GREEN, new Plot(){
26 public double compute(double value) {
33 /** This method is called from within the constructor to
34 * initialize the form.
35 * WARNING: Do NOT modify this code. The content of this method is
36 * always regenerated by the Form Editor.
38 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
39 private void initComponents() {
41 mujGraf = new org.jdesktop.swingx.JXGraph();
43 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
45 javax.swing.GroupLayout mujGrafLayout = new javax.swing.GroupLayout(mujGraf);
46 mujGraf.setLayout(mujGrafLayout);
47 mujGrafLayout.setHorizontalGroup(
48 mujGrafLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
49 .addGap(0, 465, Short.MAX_VALUE)
51 mujGrafLayout.setVerticalGroup(
52 mujGrafLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
53 .addGap(0, 422, Short.MAX_VALUE)
56 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
57 getContentPane().setLayout(layout);
58 layout.setHorizontalGroup(
59 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
60 .addGroup(layout.createSequentialGroup()
62 .addComponent(mujGraf, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
65 layout.setVerticalGroup(
66 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
67 .addGroup(layout.createSequentialGroup()
69 .addComponent(mujGraf, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
74 }// </editor-fold>//GEN-END:initComponents
77 * @param args the command line arguments
79 public static void main(String args[]) {
80 java.awt.EventQueue.invokeLater(new Runnable() {
82 new GrafPokus().setVisible(true);
87 // Variables declaration - do not modify//GEN-BEGIN:variables
88 private org.jdesktop.swingx.JXGraph mujGraf;
89 // End of variables declaration//GEN-END:variables