Click here to Skip to main content
15,887,135 members
Home / Discussions / Java
   

Java

 
AnswerRe: How to draw Shapes from MySQL Database Pin
BobJanova12-Dec-13 5:33
BobJanova12-Dec-13 5:33 
QuestionGood books on JDBC and Java Swing? Pin
Member 1033880511-Dec-13 15:05
Member 1033880511-Dec-13 15:05 
AnswerRe: Good books on JDBC and Java Swing? Pin
Richard MacCutchan11-Dec-13 21:22
mveRichard MacCutchan11-Dec-13 21:22 
AnswerRe: Good books on JDBC and Java Swing? Pin
TorstenH.12-Dec-13 3:08
TorstenH.12-Dec-13 3:08 
AnswerRe: Good books on JDBC and Java Swing? Pin
M Riaz Bashir15-Dec-13 1:38
M Riaz Bashir15-Dec-13 1:38 
QuestionJava Code to Print JFrame or JPannel Form Contents Pin
Cyber129-Dec-13 21:41
Cyber129-Dec-13 21:41 
AnswerRe: Java Code to Print JFrame or JPannel Form Contents Pin
Richard MacCutchan9-Dec-13 22:30
mveRichard MacCutchan9-Dec-13 22:30 
GeneralRe: Java Code to Print JFrame or JPannel Form Contents Pin
Cyber1213-Dec-13 23:17
Cyber1213-Dec-13 23:17 
Hello! I was trying to print contents in JText Fields and their corresponding JLabels on paper using the following code:

Toolkit tkp = jPanel7.getToolkit();
PrintJob pjp = tkp.getPrintJob(this, null, null);
Graphics g = pjp.getGraphics();
jPanel7.printAll(g);
g.dispose();
pjp.end();

But it's not printing the contents; It only prints all visible components on the jPanel7.
Please try modifying the code so as to print contents of text fields and their corresponding labels only???

Thanks!!!
GeneralRe: Java Code to Print JFrame or JPannel Form Contents Pin
Richard MacCutchan13-Dec-13 23:30
mveRichard MacCutchan13-Dec-13 23:30 
GeneralRe: Java Code to Print JFrame or JPannel Form Contents Pin
Cyber1214-Dec-13 20:24
Cyber1214-Dec-13 20:24 
QuestionAudio Lever Meter Pin
xchris009-Dec-13 0:27
xchris009-Dec-13 0:27 
AnswerRe: Audio Lever Meter Pin
Richard MacCutchan9-Dec-13 2:10
mveRichard MacCutchan9-Dec-13 2:10 
GeneralRe: Audio Lever Meter Pin
xchris009-Dec-13 2:15
xchris009-Dec-13 2:15 
GeneralRe: Audio Lever Meter Pin
Richard MacCutchan9-Dec-13 2:20
mveRichard MacCutchan9-Dec-13 2:20 
GeneralRe: Audio Lever Meter Pin
xchris009-Dec-13 2:26
xchris009-Dec-13 2:26 
GeneralRe: Audio Lever Meter Pin
Richard MacCutchan9-Dec-13 2:47
mveRichard MacCutchan9-Dec-13 2:47 
GeneralRe: Audio Lever Meter Pin
xchris009-Dec-13 2:58
xchris009-Dec-13 2:58 
AnswerRe: Audio Lever Meter Pin
xchris0017-Dec-13 2:30
xchris0017-Dec-13 2:30 
Questionretrieving path from Mysql database to draw bezier curve on JFrame Pin
f268-Dec-13 21:10
f268-Dec-13 21:10 
AnswerRe: retrieving path from Mysql database to draw bezier curve on JFrame Pin
Richard MacCutchan8-Dec-13 22:32
mveRichard MacCutchan8-Dec-13 22:32 
Questionjava string Pin
Trupti0017-Dec-13 1:32
Trupti0017-Dec-13 1:32 
AnswerRe: java string Pin
jschell7-Dec-13 10:49
jschell7-Dec-13 10:49 
AnswerRe: java string Pin
Peter_in_27807-Dec-13 22:44
professionalPeter_in_27807-Dec-13 22:44 
Questioncode to develop main window in auto mobile spare parts Pin
Member 104492436-Dec-13 0:49
Member 104492436-Dec-13 0:49 
AnswerRe: code to develop main window in auto mobile spare parts Pin
Richard MacCutchan6-Dec-13 2:12
mveRichard MacCutchan6-Dec-13 2:12 

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.