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

Java

 
QuestionClasses and methods Pin
vidhyaej19-Oct-10 21:28
vidhyaej19-Oct-10 21:28 
AnswerRe: Classes and methods Pin
Nagy Vilmos19-Oct-10 22:01
professionalNagy Vilmos19-Oct-10 22:01 
GeneralRe: Classes and methods Pin
vidhyaej19-Oct-10 22:58
vidhyaej19-Oct-10 22:58 
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 
Hello,

I have the following problem :
- I have a class My frame that extends JFrame and
also I have a class MyComponent that extends JComponent
- the MyComponent class overrides the paint method and displays a picture on a certain position

The problem is that when I call in the MyFrame constructor the methods (inherited from JFrame )
add(new MyComponent( ...position parameters 1.. ))
and also
add(new MyComponent( ...position parameters 2.. ))
only the last one is displayed (if I add more only the last one is drawn).

I spoke to someone and told me that I could be that the frame draws the components on different layers but didn't knew how to solve it ... .I've googled it and still nothing .

If someone had this issue please reply.

Thanks in advance! Smile | :)
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 
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 

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.