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

Java

 
QuestionSending of byte array messages to an VB Receiving Emulator application Pin
pohcb_sonic10-Jun-10 18:43
pohcb_sonic10-Jun-10 18:43 
AnswerRe: Sending of byte array messages to an VB Receiving Emulator application Pin
Richard MacCutchan10-Jun-10 23:15
mveRichard MacCutchan10-Jun-10 23:15 
GeneralRe: Sending of byte array messages to an VB Receiving Emulator application [modified] Pin
pohcb_sonic14-Jun-10 14:40
pohcb_sonic14-Jun-10 14:40 
GeneralRe: Sending of byte array messages to an VB Receiving Emulator application Pin
Richard MacCutchan15-Jun-10 4:48
mveRichard MacCutchan15-Jun-10 4:48 
QuestionHow to resizethe backGround Image to JPanel? Pin
002comp9-Jun-10 1:48
002comp9-Jun-10 1:48 
AnswerRe: How to resizethe backGround Image to JPanel? Pin
David Skelly9-Jun-10 5:22
David Skelly9-Jun-10 5:22 
GeneralRe: How to resizethe backGround Image to JPanel? Pin
002comp9-Jun-10 17:52
002comp9-Jun-10 17:52 
GeneralRe: How to resizethe backGround Image to JPanel? Pin
David Skelly9-Jun-10 22:26
David Skelly9-Jun-10 22:26 
I'm not a Swing programmer, so take this advice with a large, large pinch of salt.

Reading the documentation for Graphics, it looks as if drawImage is overloaded. The javadoc for the drawImage method you are calling says:

Draws as much of the specified image as has already been scaled to fit inside the
specified rectangle.


In other words, it does not resize the image.

There is another drawImage method that says:

Draws as much of the specified area of the specified image as is currently available,
scaling it on the fly to fit inside the specified area of the destination drawable 
surface.


It sounds to me as if this is what you want.

My advice would be to read the documentation on how to draw and resize images. Sorry I can't be more help, but as I said, I am not a Swing programmer.
GeneralRe: How to resizethe backGround Image to JPanel? Pin
002comp10-Jun-10 1:05
002comp10-Jun-10 1:05 
QuestionDrop Down Pin
Wcmedic8-Jun-10 11:39
Wcmedic8-Jun-10 11:39 
AnswerRe: Drop Down Pin
Nagy Vilmos8-Jun-10 20:16
professionalNagy Vilmos8-Jun-10 20:16 
GeneralRe: Drop Down Pin
Wcmedic9-Jun-10 6:05
Wcmedic9-Jun-10 6:05 
GeneralStudent Report Program Pin
CodeScribbler7-Jun-10 20:45
CodeScribbler7-Jun-10 20:45 
GeneralRe: Student Report Program Pin
Richard MacCutchan7-Jun-10 21:47
mveRichard MacCutchan7-Jun-10 21:47 
GeneralStudent Report Program Pin
CodeScribbler7-Jun-10 22:46
CodeScribbler7-Jun-10 22:46 
GeneralRe: Student Report Program Pin
Richard MacCutchan8-Jun-10 3:42
mveRichard MacCutchan8-Jun-10 3:42 
GeneralRe: Student Report Program Pin
CodeScribbler9-Jun-10 3:34
CodeScribbler9-Jun-10 3:34 
GeneralRe: Student Report Program Pin
Richard MacCutchan9-Jun-10 4:29
mveRichard MacCutchan9-Jun-10 4:29 
QuestionHow to clone(Deep clone) instance variables in a class and it to the clone object of that class? Pin
PJanaki6-Jun-10 20:48
PJanaki6-Jun-10 20:48 
AnswerRe: How to clone(Deep clone) instance variables in a class and it to the clone object of that class? Pin
David Skelly6-Jun-10 22:24
David Skelly6-Jun-10 22:24 
GeneralRe: How to clone(Deep clone) instance variables in a class and it to the clone object of that class? Pin
PJanaki6-Jun-10 23:11
PJanaki6-Jun-10 23:11 
GeneralRe: How to clone(Deep clone) instance variables in a class and it to the clone object of that class? Pin
David Skelly7-Jun-10 2:41
David Skelly7-Jun-10 2:41 
GeneralRe: How to clone(Deep clone) instance variables in a class and it to the clone object of that class? Pin
PJanaki8-Jun-10 3:48
PJanaki8-Jun-10 3:48 
GeneralRe: How to clone(Deep clone) instance variables in a class and it to the clone object of that class? Pin
David Skelly8-Jun-10 5:25
David Skelly8-Jun-10 5:25 
QuestionAltering .class files or recompiling isolated .java ones Pin
Abrojus3-Jun-10 14:38
Abrojus3-Jun-10 14:38 

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.