Click here to Skip to main content
15,891,204 members
Home / Discussions / Java
   

Java

 
GeneralRe: Classes and methods Pin
Richard MacCutchan19-Oct-10 23:23
mveRichard MacCutchan19-Oct-10 23:23 
GeneralRe: Classes and methods Pin
vidhyaej19-Oct-10 23:41
vidhyaej19-Oct-10 23:41 
GeneralRe: Classes and methods Pin
TorstenH.19-Oct-10 23:27
TorstenH.19-Oct-10 23:27 
GeneralRe: Classes and methods Pin
vidhyaej19-Oct-10 23:43
vidhyaej19-Oct-10 23:43 
QuestionPaint problem in java Pin
tamash_ionut19-Oct-10 13:01
tamash_ionut19-Oct-10 13:01 
AnswerRe: Paint problem in java Pin
Nagy Vilmos19-Oct-10 22:03
professionalNagy Vilmos19-Oct-10 22:03 
AnswerRe: Paint problem in java Pin
TorstenH.19-Oct-10 23:12
TorstenH.19-Oct-10 23:12 
QuestionRe: Paint problem in java Pin
tamash_ionut20-Oct-10 10:45
tamash_ionut20-Oct-10 10:45 
Still nothing.

I'ved tried the following:

this are all in the class constructor that extends JFrame


1) 
   add(new MyComponent(0,0,50,50,12));
   add(new MyComponent(100,100,50,50,12));

2)
   this.getContentPane().add(new MyComponent(0,0,50,50,12));
   this.getContentPane().add(new MyComponent(100,100,50,50,12));

   this.repaint();


and only the second component was drawn in both cases. However if I omit comment the second component, the first one is drawn correctly.

My component extends JComponent and overrides paint method by painting a image at the specified coordinates.Confused | :confused:
AnswerRe: Paint problem in java Pin
TorstenH.21-Oct-10 23:00
TorstenH.21-Oct-10 23:00 
QuestionGlassfish Deployment error Pin
JDragon31415919-Oct-10 11:09
JDragon31415919-Oct-10 11:09 
AnswerRe: Glassfish Deployment error Pin
Richard MacCutchan19-Oct-10 23:17
mveRichard MacCutchan19-Oct-10 23:17 
AnswerRe: Glassfish Deployment error Pin
TorstenH.19-Oct-10 23:31
TorstenH.19-Oct-10 23:31 
GeneralRe: Glassfish Deployment error Pin
Richard MacCutchan20-Oct-10 1:24
mveRichard MacCutchan20-Oct-10 1:24 
QuestionProcessing JSP-Form using Servlet using AJAX Post method Pin
khurram_shahzad17-Oct-10 7:17
khurram_shahzad17-Oct-10 7:17 
Questionhelp required Pin
Nima Dorji15-Oct-10 5:30
Nima Dorji15-Oct-10 5:30 
AnswerRe: help required Pin
Richard MacCutchan15-Oct-10 6:00
mveRichard MacCutchan15-Oct-10 6:00 
QuestionSwing equivalent in java mobile Pin
trioum14-Oct-10 8:03
trioum14-Oct-10 8:03 
AnswerRe: Swing equivalent in java mobile Pin
Nagy Vilmos14-Oct-10 21:51
professionalNagy Vilmos14-Oct-10 21:51 
QuestionProblem in learning AJAX with PHP Pin
khurram_shahzad13-Oct-10 11:04
khurram_shahzad13-Oct-10 11:04 
AnswerRe: Problem in learning AJAX with PHP Pin
Richard MacCutchan13-Oct-10 11:43
mveRichard MacCutchan13-Oct-10 11:43 
GeneralRe: Problem in learning AJAX with PHP Pin
khurram_shahzad14-Oct-10 5:57
khurram_shahzad14-Oct-10 5:57 
QuestionDividing a text file into variable size chunks using Rabin fingerprint algorithm in java Pin
LOKESHWARI13-Oct-10 2:14
LOKESHWARI13-Oct-10 2:14 
AnswerRe: Dividing a text file into variable size chunks using Rabin fingerprint algorithm in java Pin
Cedric Moonen13-Oct-10 3:13
Cedric Moonen13-Oct-10 3:13 
QuestionDeveloping a Multitenant Application in Java Pin
sangeetha_spss12-Oct-10 3:03
sangeetha_spss12-Oct-10 3:03 
AnswerRe: Developing a Multitenant Application in Java Pin
Richard MacCutchan12-Oct-10 5:46
mveRichard MacCutchan12-Oct-10 5:46 

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.