yeah, becuse i dont understand java programming, that why i need your help
Type: Posts; User: aelynne
yeah, becuse i dont understand java programming, that why i need your help
it doesnt have error message. i can compile it, just it has red line below the text. and when i pressed save button it eventdispatchthread. java and show this
if (theQueue.peekEvent() != null || ...
this the error,1268
my error is in here. at the canvas, image n so on. getWidth, getHeight. what should i replace to that?
public void capture(){
Graphics g = image.createGraphics();
...
my error is in here. at the canvas, image n so on. getWidth, getHeight. what should i replace to that?
public void capture(){
Graphics g = image.createGraphics();
...
like this? but i it have error
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import...
i dont get it. i'm new to java. can u give example? or help me add in my code?
is it in here
if (image == null?
this is the code example same as i do. how to add save function to it?
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import...
take a look at this, i have paint component. but how I can save the image?
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import...
i dont get it, can you give some example?
try this. i already done that, nothing problem. my problem is how to save the image i draw in the canvas.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import...
i can compile it. nothing problem
sorry, this is my new code. when i run, it save blank black image. i want to save the drawing on the canvas. please help me.
import javax.swing.*;
import java.awt.*;
import...
I have done this, but i have problem to save the image? can someone help me?
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import...