Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Swing / AWT / SWT
wrapping in g.drawString(g,x,y)
Ranganath Junpal
Ranch Hand
Posts: 76
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi ,
Is there any way to wrap
string
in g.drawString(stg,x,y) of the paintComponent(Graphics g) method. if so please let know with an example.
thank you
Ernest Friedman-Hill
author and iconoclast
Posts: 24207
46
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
No, there's not. You'd have to do this yourself by breaking up the String and using multiple drawString() calls.
You might consider using a text component instead of raw drawing; for example, you can use HTML in a JLabel to get a multiline label.
[Jess in Action]
[AskingGoodQuestions]
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
in JPanel want to add an image as background and also want to use drawString()
Instance of Graphics ,g , can't be recognized in applen
writing mouse position to screen
change pixel value to cell coordinate
java program for sawtooth pattern
More...