Search:

Type: Posts; User: amirham

Search: Search took 0.12 seconds.

  1. Replies
    12
    Views
    2,040

    Re: Java Printer Job

    the moderator doesnt accept the code...i dunno why!?

    --- Update ---




    public class SaleServiceReciept {

    //Static swing components
  2. Replies
    12
    Views
    2,040

    Re: Java Printer Job

    public class SaleServiceReciept {

    //Static swing components
    static JFrame frmMain;
    static Container pane;
    static JButton btnPrint;

    public static void main(String[] args)...
  3. Replies
    12
    Views
    2,040

    Re: Java Printer Job

    public class SaleServiceReciept {

    //Static swing components
    static JFrame frmMain;
    static Container pane;
    static JButton btnPrint;

    public static void main(String[] args)...
  4. Replies
    12
    Views
    2,040

    Re: Java Printer Job

    public class btnPrintAction implements ActionListener, Printable{
    /*to be able to get something out of your printer,you need a class
    *which implements the printable interface.
    */
    ...
  5. Replies
    12
    Views
    2,040

    Re: Java Printer Job

    public class btnPrintAction implements ActionListener, Printable{
    /*to be able to get something out of your printer,you need a class
    *which implements the printable interface.
    */
    ...
  6. Replies
    12
    Views
    2,040

    Re: Java Printer Job

    public class btnPrintAction implements ActionListener, Printable{
    /*to be able to get something out of your printer,you need a class
    *which implements the printable interface.
    */
    ...
  7. Replies
    12
    Views
    2,040

    Re: Java Printer Job

    public class SaleServiceReciept {

    //Static swing components
    static JFrame frmMain;
    static Container pane;
    static JButton btnPrint;

    public static void main(String[] args)...
  8. Replies
    12
    Views
    2,040

    Re: Java Printer Job

    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;...
  9. Replies
    12
    Views
    2,040

    Re: Java Printer Job

    //Import packages
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.print.*;

    public class Program1{
    //Static swing components
    static JFrame frmMain;
    ...
  10. Replies
    12
    Views
    2,040

    Java Printer Job

    Try to print a "hello world"
    but an exception occured as follow:

    Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 7
    at...
Results 1 to 10 of 10