Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. public void paint(Graphics g) {
  2. super.paintComponents(g);
  3. int sizeX = this.getWidth();
  4. int sizeY = this.getHeight();
  5.  
  6. // oben links soll Name stehen
  7. g.setColor(Color.green);
  8. g.setFont(f1);
  9. g.drawString(" Dzhaner Ismail ", 25, 450);
  10.  
  11. // Koordinatensystem erstellen
  12. KoordinatenSystem koord = new KoordinatenSystem(g, sizeX, sizeY);
  13. if (this.jButtonZeichneIsSelected) {
  14. if(setKooeffizienten()==true) {
  15. }
  16. koord.paintGanzrationaleFunktion(g, sizeX, sizeY, a, b, c);
  17. } else {
  18. JOptionPane.showMessageDialog(null, "Ungültige Eingabe", "Fehlermeldung", JOptionPane.ERROR_MESSAGE);
  19. }
  20. }
  21.  
  22.  
  23. private void jButtonZeichneActionPerformed(ActionEvent evt) {
  24. jButtonZeichneIsSelected = true;
  25. this.repaint();
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement