Java program

I kindly need to Write a graphical application overriding the paint method of the JFrame class. Inside it, cast the Graphics object to a Graphics2D object and draw a dashed, rounded rectangle. The length of the dashes should be no longer than the length of the spaces between the dashes. The Hint they gave me is : Look up the Graphics2D, BasicStroke, and RoundRectangle2D.Double classes in the Java Class
Library.
LVL 3
ivan rosaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mccarlIT Business Systems Analyst / Software DeveloperCommented:
What do you have so far?  We can't write the code for you, you need to have a go and then ask specific questions on points that you are stuck on.
ivan rosaAuthor Commented:
unfortunately I got nothing, this is just school homework... and I literally pasted like itbwas giving into me, and since I don't know where to start I was hoping somebody gave me any ideas...
Amitkumar PSr. ConsultantCommented:
There is a tutorial on oracle website that gives a basic understanding how to use paint method to draw a rectangle.

Go thru it and understand it. Same way you can proceed with other objects too.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.