diff --git a/src/chart/Chart1.form b/src/chart/Chart1.form new file mode 100644 index 0000000..c638b68 --- /dev/null +++ b/src/chart/Chart1.form @@ -0,0 +1,28 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/src/chart/Chart1.java b/src/chart/Chart1.java new file mode 100644 index 0000000..f5da290 --- /dev/null +++ b/src/chart/Chart1.java @@ -0,0 +1,56 @@ + +package chart; + +import java.awt.Cursor; +import java.awt.Graphics; + +/** + * + * @author 7u83 <7u83@mail.ru> + */ +public class Chart1 extends javax.swing.JPanel { + + /** + * Creates new form Chart1 + */ + public Chart1() { + initComponents(); + System.out.printf("Now cursor\n"); + setCursor(new Cursor(Cursor.CROSSHAIR_CURSOR)); + + } + + + + @Override + protected void paintComponent(Graphics g) { + super.paintComponent(g); + g.drawLine(0, 0, 10, 10); + } + + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // //GEN-BEGIN:initComponents + private void initComponents() { + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); + this.setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGap(0, 400, Short.MAX_VALUE) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGap(0, 300, Short.MAX_VALUE) + ); + }// //GEN-END:initComponents + + + // Variables declaration - do not modify//GEN-BEGIN:variables + // End of variables declaration//GEN-END:variables +}