wood burning stoves 2.0*
The moose likes JSP and the fly likes Using Colour chooser and Font Chooser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Using Colour chooser and Font Chooser" Watch "Using Colour chooser and Font Chooser" New topic
Author

Using Colour chooser and Font Chooser

rahul Borkar
Greenhorn

Joined: May 14, 2008
Posts: 3
Hi Folks,

I'm new to JSP.
I want to display Java Color chooser on JSP page on click of button.
Also I want to display Font chooser on click of button.
So how to do that?

Thanks,
Rahul
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
The Java code in JSP pages is executed on the server, so you can't use it to display the font or color choosers on the client. If using them is an absolute requirement, then you need to write an applet that's embedded in the web page.


Ping & DNS - my free Android networking tools app
rahul Borkar
Greenhorn

Joined: May 14, 2008
Posts: 3
Hi again,

Thanks very much.

Is there any other way to do this...?
Also, can you provide me Links where I can find help related to write applet for this?

Thanks again,
Rahul
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
The Sun Java Tutorial has an extensive chapter on applets.

Once you have created the applet you will need to use applet/servlet communication (most likely using HTTP) to get any selected color values/font values to the web app.
[ May 14, 2008: Message edited by: Ulf Dittmer ]
rahul Borkar
Greenhorn

Joined: May 14, 2008
Posts: 3
Thanks a lot Ulf,

I eill check with it and again post if I need any help.

Thanks,
Rahul
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Using Colour chooser and Font Chooser
 
Similar Threads
JButton is not displaying the background color
Right Click event
Download pdf file in struts2
error for 'Back' navigation..IE
How to upload a file on the click of a button.