Paint interface

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
View Poll Results: Do you know how to use interfaces in JAVA?
Yeah, of course. 4 66.67%
Uhhh...no. 1 16.67%
Interwhaaa??? 0 0%
I don't program in JAVA, I'm just browsing/lost in the website. 1 16.67%
Voters: 6. You may not vote on this poll

Reply

Join Date: Oct 2006
Posts: 143
Reputation: venomlash is an unknown quantity at this point 
Solved Threads: 2
venomlash's Avatar
venomlash venomlash is offline Offline
Junior Poster

Paint interface

 
0
  #1
Jul 18th, 2007
How does one use an interface? The paint interface in particular?
¡Ayúdame, por favor!
Beware of the Rancor. I'm not kidding.
If it doesn't compile, try saying "By the power of MegaMan!!!" <this has kinda worked for me, actually...>
Scotland is NOT North Britain, Glasgow does NOT rhyme with "cow", and Robbie Burns is...well, if you don't already know who he was, you're kinda screwed.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Paint interface

 
0
  #2
Jul 18th, 2007
there is no "paint" interface, at least not in any well architectured API.

Anyone who doesn't know what an interface is or how to use one should resort to some beginner's tutorial btw.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 102
Reputation: TheGathering is an unknown quantity at this point 
Solved Threads: 10
TheGathering's Avatar
TheGathering TheGathering is offline Offline
Junior Poster

Re: Paint interface

 
0
  #3
Jul 18th, 2007
http://java.sun.com/docs/books/tutor...interface.html

That is what an interface is. Usually to use an interface you need to find an implementing class of that interface in the java api and or write your own.

For example, to obtain an implementation for the Paint interface, you would use the .getPaint() method in the Graphics2D abstract class.

To find out how to use Graphics2D, you can Google the numerous Java GUI tutorials.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,499
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 521
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Paint interface

 
0
  #4
Jul 18th, 2007
Actually Java does have a Paint interface in java.awt for defining color patterns, but I have never had a need to implement it in any Graphics2D work I've done to date. You would only need it if you were defining a customer color-type class.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,237
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 490
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Paint interface

 
0
  #5
Jul 18th, 2007
One point for jwenting as there is no paint interface and one point for Ezzaral as there is Paint interface which can be found here.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,499
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 521
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Paint interface

 
0
  #6
Jul 18th, 2007
Originally Posted by peter_budo View Post
One point for jwenting as there is no paint interface and one point for Ezzaral as there is Paint interface which can be found here.
hehe Ok, points for all.
The posted question is extremely vague though, so I doubt much help is forthcoming.
Last edited by Ezzaral; Jul 18th, 2007 at 1:57 pm.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,635
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 469
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Paint interface

 
0
  #7
Jul 18th, 2007
The correct answer is 'Interwhaaa???'. ;-)
I don't accept change; I don't deserve to live.

Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Paint interface

 
0
  #8
Jul 18th, 2007
Originally Posted by peter_budo View Post
One point for jwenting as there is no paint interface and one point for Ezzaral as there is Paint interface which can be found here.
which are of course 2 completely different things as classnames (and thus interface names) are casesensitive

I'm quite aware of the existence of a Paint interface.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC