May I see what you have already build. I understand that your data base is written on the white board. But do you have anything build such as the code below?
import java.awt.Point; import java.awt.Component; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Graphics2D; import java.awt.event.ActionEvent; import java.awt.event.ActionListener;
public class paint{
public static void main(String[] args){
try { UIManager.setLookAndFeel( UIManager.getCrossPlatformLookAndFeelClassName() ); }
catch (Exception e) { e.printStackTrace(); }
JFrame frame = new JFrame("Brush Stroke"); Container content = frame.getContentPane(); final PadDraw drawPad = new PadDraw();
content.add(drawPad, BorderLayout.CENTER); // sets the padDraw in the center
// This sets the size of the panel JPanel panel = new JPanel(); panel.setPreferredSize(new Dimension(85, 85)); panel.setMinimumSize(new Dimension(85, 85)); panel.setMaximumSize(new Dimension(85, 85)); panel.setBackground(new Color(255,215,0)); ????
|