It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes Swing related Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing related" Watch "Swing related" New topic

Swing related

paramu iyer

Joined: May 13, 2006
Posts: 24
I am using drawRect method in the Graphics to draw a rectangle. No I want to put text inside the rectangle. Is there any way to do that so that the text gets wrapped up automatically when it finds the end of the rectangle?
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
paramu iyer

Joined: May 13, 2006
Posts: 24
If we have classes that can draw individual figures like rectangle,circle etc , How can we draw a complete flow chart or a use case where we are uncertain about the number of rectangles , circles etc which may come from some xml.

We can use a panel and use Grid Bag Lay out, I guess but how to get the use case diagram or a flow chart ?

I agree. Here's the link:
subject: Swing related
jQuery in Action, 3rd edition