the moderator doesnt accept the code...i dunno why!?
--- Update ---
public class SaleServiceReciept {
//Static swing components
Type: Posts; User: amirham
the moderator doesnt accept the code...i dunno why!?
--- Update ---
public class SaleServiceReciept {
//Static swing components
public class SaleServiceReciept {
//Static swing components
static JFrame frmMain;
static Container pane;
static JButton btnPrint;
public static void main(String[] args)...
public class SaleServiceReciept {
//Static swing components
static JFrame frmMain;
static Container pane;
static JButton btnPrint;
public static void main(String[] args)...
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.
*/
...
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.
*/
...
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.
*/
...
public class SaleServiceReciept {
//Static swing components
static JFrame frmMain;
static Container pane;
static JButton btnPrint;
public static void main(String[] args)...
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;...
//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;
...
Try to print a "hello world"
but an exception occured as follow:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 7
at...