Go Back   Java Programming Forums > Java Standard Edition Programming Help > AWT / Java Swing > Java Applets


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-08-2009, 08:59 PM
Junior Member
 

Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
rockster14 is on a distinguished road
Default applet and JPS problem.... please help me

Hi all,

I am developing a project. Here's is d problem.

I need an online tool that will detect user’s printer model and then display the user a special link that is related to the detected model.

Ideally, it should detect the physically connected PNP printer first, after the user grants permission. As an option, it should look at the installed printers on the system in case the printer in question is installed on the network or not currently connected. Once detected, printer model string would be used to form a URL that will be displayed to the user.

For example; I have a Lexmark A1000 connected to my computer. It’s a Plug’n’Play printer. I don’t want to install the wrong parts or get the wrong information, so I run this online tool to detect my printer. It detects successfully and returns the string “Lexmark A1000” with a link that contains the string. Then it asks if I want to detect my “installed printers”. If I say yes, it will also detect my network printer “Samsung X1000”. I will have two links showing on the screen each one going to the corresponding printer page.


I have developed a small applet that detects user's installed printers. here's code for that.

import javax.print.;
import java.awt.;


@SuppressWarnings("serial")
public class Test extends java.applet.Applet {


public void paint(Graphics g) {
PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
int x=5,y=20;
for (PrintService printer : printServices)
{
g.drawString(printer.getName(),x,y);
y+=20;
}
}
}

Can anybody help me what i should do next?

Please help me.

Thanks in advance.



Reply With Quote Share this thread on Facebook
Sponsored Links
Java Training from DevelopIntelligence
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
servlet applet communication prashanthi_asn Java Servlet 0 21-05-2009 05:50 AM
dynamically add jmol applet in jsf megha JavaServer Pages: JSP & JSTL 0 15-05-2009 11:16 AM
RLC Circuit Java Applet syxxpac316 Java Applets 6 13-05-2009 09:26 PM
[SOLVED] Java Applet Switching To Different Windows? channi3 Java Applets 1 11-03-2009 08:41 PM
Calculator-applet AnithaBabu1 Java Applets 0 16-08-2008 04:42 AM


100 most searched terms
Search Cloud
2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java addactionlistener addactionlistener java convert double to integer java double format java double to integer in java double to integer java drag en drop programmeren java eclipse shortcut keys exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double in java format double java get mouse position java java 2d arraylist java actionlistener java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming practice problems java send keystrokes to another application java two dimensional arraylist java.io.ioexception: premature eof java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton action jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics smack api two dimensional arraylist two dimensional arraylist java unable to sendviapost to url what is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

All times are GMT. The time now is 01:54 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.