Click here to Skip to main content
15,921,884 members
Home / Discussions / Java
   

Java

 
QuestionJScrollPane child dimesniosn not updating Pin
rareseu14-May-09 5:01
rareseu14-May-09 5:01 
AnswerRe: JScrollPane child dimesniosn not updating Pin
Nagy Vilmos14-May-09 5:45
professionalNagy Vilmos14-May-09 5:45 
GeneralRe: JScrollPane child dimesniosn not updating Pin
rareseu14-May-09 6:30
rareseu14-May-09 6:30 
GeneralRe: JScrollPane child dimesniosn not updating Pin
Nagy Vilmos14-May-09 22:05
professionalNagy Vilmos14-May-09 22:05 
GeneralRe: JScrollPane child dimesniosn not updating Pin
rareseu14-May-09 22:38
rareseu14-May-09 22:38 
Questionrelated ro mobile Pin
raghvendrapanda13-May-09 20:44
raghvendrapanda13-May-09 20:44 
AnswerRe: related ro mobile Pin
Nagy Vilmos14-May-09 2:48
professionalNagy Vilmos14-May-09 2:48 
QuestionRetrieving public key for encryption from digital certificate Pin
shrims4u13-May-09 4:37
shrims4u13-May-09 4:37 
QuestionJava Event Handling Flow ??? Pin
Zealous_Me10-May-09 6:56
Zealous_Me10-May-09 6:56 
AnswerRe: Java Event Handling Flow ??? Pin
Nagy Vilmos10-May-09 21:47
professionalNagy Vilmos10-May-09 21:47 
AnswerRe: Java Event Handling Flow ??? Pin
Zealous_Me11-May-09 3:47
Zealous_Me11-May-09 3:47 
Questionneed help Pin
ahmedbhatti9-May-09 13:42
ahmedbhatti9-May-09 13:42 
AnswerRe: need help Pin
Nagy Vilmos11-May-09 3:02
professionalNagy Vilmos11-May-09 3:02 
QuestionGetting an applet's components returns null Pin
rareseu9-May-09 4:36
rareseu9-May-09 4:36 
AnswerRe: Getting an applet's components returns null Pin
fly9049-May-09 5:04
fly9049-May-09 5:04 
GeneralRe: Getting an applet's components returns null Pin
rareseu9-May-09 5:47
rareseu9-May-09 5:47 
GeneralRe: Getting an applet's components returns null [modified] Pin
fly9049-May-09 6:06
fly9049-May-09 6:06 
GeneralRe: Getting an applet's components returns null Pin
rareseu9-May-09 6:13
rareseu9-May-09 6:13 
GeneralRe: Getting an applet's components returns null Pin
fly9049-May-09 6:23
fly9049-May-09 6:23 
GeneralRe: Getting an applet's components returns null Pin
rareseu9-May-09 7:01
rareseu9-May-09 7:01 
Questionword online editor in jsp [modified] Pin
qiuxumin18-May-09 21:48
qiuxumin18-May-09 21:48 
AnswerRe: word online editor in jsp Pin
fly9048-May-09 23:12
fly9048-May-09 23:12 
GeneralRe: word online editor in jsp Pin
qiuxumin110-May-09 2:23
qiuxumin110-May-09 2:23 
QuestionDrawing in a canvas Pin
rareseu8-May-09 9:52
rareseu8-May-09 9:52 
Hy guys ! i've been using netbeans to make a GUI, and i'm having rpoblems figuring out how to draw stuff using the canvas object, i've created a canvas object but it needs a graphics object in order to draw stuff, and that's where my problems start, for the life of me i can not understand how to use one of these

this is what i've tried so far :

Graphics g=null;
g.setColor(new Color(255,0,0));
canvas1.paint(g);


when i run this java flares up with null pointer exceptions altho the canvas itself has been instantiated

i've looked on the sun homepage for guidance but there is no hint on how to use an instance of a canvas object, they way they show is by creating a class that inherits Canvas and overwriting it's paint method, but that's no use to me
AnswerRe: Drawing in a canvas Pin
Jimmanuel8-May-09 10:11
Jimmanuel8-May-09 10:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.