Paint program « Graphics « Java Swing Q&A





1. OO-design for painting program interface    stackoverflow.com

I'm writing a painting program. My basic classes are:

  class Workspace { Bitmap b; List<Command> undoList; }

  class Command { void execute(); }

  class ClearScreen extends Command

  ...

2. Paint program    coderanch.com

I am writing a program where if the user clicks, it should draw a point. The following code does not seem to work properly. If I click, it draws a point but vanishes later on. I tried using paint and paint component but I am not able to use them. Please help!! import javax.swing.*; import javax.swing.border.*; import java.awt.*; import java.awt.event.*; public ...

3. Paint Program Help    java-forums.org

So I'm having a couple of problems with my program and would really appreciate it if anyone could help. 1. I'm interpolating a pencil like tool to draw on the canvas. However, when the mouse is released and clicked again it interpolates all the way over when it should be starting a new stroke. I've tried making a vector of vectors ...

4. Paint program    java-forums.org

I am writing a program where if the user clicks, it should draw a point. The following code does not seem to work properly. If I click, it draws a point but vanishes later on. I tried using paint and paint component but I am not able to use them. Please help!! Java Code: import javax.swing.*; import javax.swing.border.*; import java.awt.*; import ...

5. General GUI painting bug in program    forums.oracle.com