Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the difference between Swing paint() and print()?  RSS feed

 
gourav sarkar
Greenhorn
Posts: 10
C++ Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between SWING paint() and print()?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is swing print?
 
gourav sarkar
Greenhorn
Posts: 10
C++ Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean JComponent.print(Graphic g)
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javadoc descriptions of both methods are rather dissimilar, so it's odd that this should cause confusion: one is for drawing on the screen, and the other is for printing. What was your impression of what the difference would be?
 
gourav sarkar
Greenhorn
Posts: 10
C++ Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea. as you are emphasizing on drawing on 'screen' and 'printing' i guess it would be used when printing it using printer? I don't know. some of languages i used , uses 'print' term to show something on screen, so i inherently assume such and that word did not get my extra attention.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case I advise to work through the Oracle Java Tutorial, or any Java beginner's book, which covers this in much greater depth. That would get you acquainted with the Java lingo.
 
gourav sarkar
Greenhorn
Posts: 10
C++ Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i am doing so. Tutorials are big and as far i can remember i did not encounter these language classification difference yet. Until i reach there i would like to hear an answer to clear out this.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer what? You already seem to understand the difference between screen and print... ?
 
gourav sarkar
Greenhorn
Posts: 10
C++ Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was my assumption and you did not confirm that. I think i have got my answer now.
Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!