Team Zone - Gaming Community
Welcome to Team Zone Gaming Community! Make sure you respect the rules!


In order to see all sections you must register.

Team Zone - Gaming Community

Welcome to Team Zone forum
 
HomeRegisterLog in
Data base


Share | 
 

 Java Programmers

View previous topic View next topic Go down 
Go to page : 1, 2  Next
AuthorMessage
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Java Programmers   Tue Dec 06, 2011 9:48 am

looking ppl with Java knowledge to help with some project....

ps. Splicho pls Pin this topic
Back to top Go down
GreenTunes
Warrior
Warrior


Posts : 293
Join date : 2011-08-03
Age : 27
Location : Lithuania, Kaunas

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:02 am

i can progarm java... i played 1 or 2 times in java server.. i can be gm...
Back to top Go down
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:03 am

no im serios.....


Splicho make topic and meke me moderator so i can delete useless post, ty
Back to top Go down
GreenTunes
Warrior
Warrior


Posts : 293
Join date : 2011-08-03
Age : 27
Location : Lithuania, Kaunas

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:05 am

why so serious... project at school?
Back to top Go down
orkje



Posts : 8
Join date : 2009-12-27

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:07 am

Kupo what do you want to know about java?
Back to top Go down
GreenTunes
Warrior
Warrior


Posts : 293
Join date : 2011-08-03
Age : 27
Location : Lithuania, Kaunas

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:08 am

yea if he will say wtf he wants... it will be easier... becouse now... looks not serious ;/
Back to top Go down
orkje



Posts : 8
Join date : 2009-12-27

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:12 am

If he wants to know more about java enterprise design pattern i can recommend this book:

http://press.adam-bien.com/real-world-java-ee-patterns-rethinking-best-practices.htm
Back to top Go down
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:12 am

well i have profect that need to do ....


well i got some mobile or PC that send to other PC text or smt ... and that will be printing on Printer on other divice.....


example ....

night bar,,, got that mobile craps ,.... and waitress click on it .... the order go to the PC .... and t printing on the printer.... near (connect to )the PC
Back to top Go down
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:13 am

im already reading some book for begginers

im proly gonna need some help with the Code
thats why i made this topic
Back to top Go down
orkje



Posts : 8
Join date : 2009-12-27

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:16 am

ok i found something really simple to help you do the printing part.

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.print.*;

public class HelloWorldPrinter implements Printable, ActionListener {


public int print(Graphics g, PageFormat pf, int page) throws
PrinterException {

if (page > 0) { /* We have only one page, and 'page' is zero-based */
return NO_SUCH_PAGE;
}

/* User (0,0) is typically outside the imageable area, so we must
* translate by the X and Y values in the PageFormat to avoid clipping
*/
Graphics2D g2d = (Graphics2D)g;
g2d.translate(pf.getImageableX(), pf.getImageableY());

/* Now we perform our rendering */
g.drawString("Hello world!", 100, 100);

/* tell the caller that this page is part of the printed document */
return PAGE_EXISTS;
}

public void actionPerformed(ActionEvent e) {
PrinterJob job = PrinterJob.getPrinterJob();
job.setPrintable(this);
boolean ok = job.printDialog();
if (ok) {
try {
job.print();
} catch (PrinterException ex) {
/* The job did not successfully complete */
}
}
}

public static void main(String args[]) {

UIManager.put("swing.boldMetal", Boolean.FALSE);
JFrame f = new JFrame("Hello World Printer");
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {System.exit(0);}
});
JButton printButton = new JButton("Print Hello World");
printButton.addActionListener(new HelloWorldPrinter());
f.add("Center", printButton);
f.pack();
f.setVisible(true);
}
}
Back to top Go down
GreenTunes
Warrior
Warrior


Posts : 293
Join date : 2011-08-03
Age : 27
Location : Lithuania, Kaunas

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:17 am

easy... pay some $ for some programer... and he will do it for you^^ easy to find programers on google search
Back to top Go down
orkje



Posts : 8
Join date : 2009-12-27

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:19 am

or just ask me since i am a java software engineer donkey.
Back to top Go down
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:20 am

@orkje im too drunk to read that atm but ill try it tmr morning....


@Green im rly interested to that craps .... if u cant help dont PM and spam
Back to top Go down
orkje



Posts : 8
Join date : 2009-12-27

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:20 am

the better solution is, create a pdf file from a input message then print that pdf with the following snippet

// Create a PDFFile from a File reference
File f = new File("c:\\juixe\\techknow.pdf");
FileInputStream fis = new FileInputStream(f);
FileChannel fc = fis.getChannel();
ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
PDFFile pdfFile = new PDFFile(bb); // Create PDF Print Page
PDFPrintPage pages = new PDFPrintPage(pdfFile);

// Create Print Job
PrinterJob pjob = PrinterJob.getPrinterJob();
PageFormat pf = PrinterJob.getPrinterJob().defaultPage();
pjob.setJobName(f.getName());
Book book = new Book();
book.append(pages, pf, pdfFile.getNumPages());
pjob.setPageable(book);

// Send print job to default printer
pjob.print();

For creating pdf's look at pdfbox.apache.org

Cheers
Back to top Go down
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:21 am

orkje wrote:
or just ask me since i am a java software engineer donkey.


good good thats what im looking for ... some1 that can help when the faking Code wont work
Back to top Go down
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:24 am

well my ask will be to use 'fiscal device' but it can be anykind of printer... as far as i know those printers we use in bulgaria are open to text.... ( still need to read more about them) my task will be to make connections between those 2 divices... mobile divice or 2 PC ... (dont care which one) printing wont be such a problem (i think)
Back to top Go down
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:25 am

im new to Java (still learning) but i think that can be done and that will be my final work at Uni.... so i can use all the help i can get
Back to top Go down
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:30 am


orkje

Do u have other think that i ca reach u for help/ skype/msn/e-mail
Back to top Go down
orkje



Posts : 8
Join date : 2009-12-27

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:33 am

Do you even know who i am?
Back to top Go down
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:34 am

dont know dont care. Java programer that can be usefull to me...
Back to top Go down
orkje



Posts : 8
Join date : 2009-12-27

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:34 am

rofl, search your mail archive for yoshka/leon
Back to top Go down
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:35 am

pffffff, i tough u are datebase smt......
Back to top Go down
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:37 am

so back when we started Smile

i think last time i asked u to help me was about some forum.......

but now thats final

(same -?- bro same paper work ... hope i done it this was)
Back to top Go down
Kupo
Loyal Member
Loyal Member
avatar

Posts : 1535
Join date : 2010-06-14
Age : 32
Location : Hell

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 10:38 am

Leon u still use MSN or i can reach u other way ?
Back to top Go down
chema
Warrior
Warrior
avatar

Posts : 210
Join date : 2010-06-19
Age : 29
Location : Spain

PostSubject: Re: Java Programmers   Tue Dec 06, 2011 12:05 pm

Lol i remember Leon ;o
Back to top Go down
Sponsored content




PostSubject: Re: Java Programmers   

Back to top Go down
 
Java Programmers
View previous topic View next topic Back to top 
Page 1 of 2Go to page : 1, 2  Next

Permissions in this forum:You cannot reply to topics in this forum
Team Zone - Gaming Community :: General section-
Jump to: