1) I have a figure (for example, an ellipse) I must draw it with a text inside that it has to be trim.
If you don't understand imagine a diagram of states,in where each state has a name. How can I center the text?
Now I'm calculating the High/width of the figure and then I center it the problem is when there are more than one line
2) I want to open modal Dialogo, but I cannot create it because the constructor requests to me that the owner is a Frame or a Dialog and what I have is an Applet.
Some idea?
Marcus