Top.Mail.Ru
March 30th, 2005 - Java developers — LiveJournal
? ?

Java developers

March 30th, 2005

10:49 am - lemmywinks30

Since the interface SingleThreadModel is deprecated what would you advise a programmer do? I know synchronization is an option but a costly one when it comes down to performance.

03:50 pm - erikwilson - Simple Print job

I'm looking for a simple way to create a print job from a string and send it to the default printer. The closest i've gotten is this...

try
{
SimpleDoc printDoc = new SimpleDoc("Happyness is me", new DocFlavor("text/plain","java.lang.String"), null);
PrintServiceLookup.lookupDefaultPrintService().createPrintJob().print(printDoc,null);
}
catch(Exception noPrint)
{System.out.println(noPrint);}

It is yelling at me saying the DocFlavor is not vailid.

There should be a simple way of doing this, but all the online tutorials talk about page formatting or adding graphics...

Thanks.

07:25 pm - jennjen

can someone please help me draw a fish (the body, 2 fins, the tail and an eye) for a method; Using drawLine and xCoord & yCoord as the variables?
I have 2 lines so far :g.drawLine(xCoord, yCoord, xCoord + yCoord, xCoord + yCoord); & g.drawLine(xCoord, yCoord, xCoord + yCoord, xCoord - yCoord);
I don't know how well they would work with the rest though.
 

08:31 pm - emopixie

This is probably going to sound rather vague and probably won't yield any responses, but I'm going to ask anyway..

For my job (random tech support/software stuff), one of my bosses asked me to build a website that would act as an interface between a .jar file and a user. If you were using this program on your local machine, it would be called in the DOS command prompt (as would all of the commands to it), but I'm supposed to design this interface so that the program can be accessed remotely from our server.

Does anyone have any (even vague) idea how to go about this?
I just need guidance in the right direction and I can (hopefully) figure out the rest from there.
Powered by LiveJournal.com