Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void paint(Graphics g) {
- super.paintComponents(g);
- int sizeX = this.getWidth();
- int sizeY = this.getHeight();
- // oben links soll Name stehen
- g.setColor(Color.green);
- g.setFont(f1);
- g.drawString(" Dzhaner Ismail ", 25, 450);
- // Koordinatensystem erstellen
- KoordinatenSystem koord = new KoordinatenSystem(g, sizeX, sizeY);
- if (this.jButtonZeichneIsSelected) {
- if(setKooeffizienten()==true) {
- }
- koord.paintGanzrationaleFunktion(g, sizeX, sizeY, a, b, c);
- } else {
- JOptionPane.showMessageDialog(null, "Ungültige Eingabe", "Fehlermeldung", JOptionPane.ERROR_MESSAGE);
- }
- }
- private void jButtonZeichneActionPerformed(ActionEvent evt) {
- jButtonZeichneIsSelected = true;
- this.repaint();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement