|
|
Re: Varying Fonts on a Panel
|
Posted: Jul 28, 2005 5:46 AM
|
|
> Give me a clue on how I can set the Font for one word on a > Panel and the next word appearing in a different > font/font > color in the same panel. > > E.g. From an HTML perspective: > > <font color="black">Please click </font> <font > color="red">here</font> > > I want this in a JPanel though. > > Please give me steps towards how to find the solution. > > I'll run a Google, though I doubt I'll find anything. > > Tx in advance.
Actually sorry, my bad its actually only <html> that I can think of that can alter two words or letter colors in the same pain (atleast without creating your own customized library.
I'm still looking for this type of functionality for a JOptionPane
String mesg; mesg = "<html><font color=red>this is red</font> <font color=green>this is green</font></html>"; JOptionPane.showConfirmDialog(parent, mesg, "Confirm", JOptionPane.YES_NO_OPTION);
Does not work! Help with other suggestions please.
|
|