Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #257

Re: how to print the data

From "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this>
Subject Re: how to print the data
Message-ID <1164835417.478346.110880@l39g2000cwd.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <1164616331.829891.249770@n67g2000cwd.googlegroups.com><
Date 2011-04-27 15:26 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
ashwinijain wrote:
> Michael Dunn wrote:
> > I'd post a link, but I had to modify a couple of things to get it to work,
> > so easier to post the code.
> > (don't ask me how it works, I have no idea)
> >
> >
> Thanks Michael.
> Your code works.
> I have one JPanel which is consisting of many swing components like
> JTable, JList, JTextField,etc.
> So, whenever i am passing that JPanel to constructor of StandardPrint,
> multiple copies of Jtable is getting printed on many papers.
> Please help me in solving this problem.
>
> public void actionPerformed(ActionEvent e)
> {
>   StandardPrint sp = new StandardPrint(b); // b is the instance of
> JPanel.
>   try{sp.start();}catch(Exception x){}
> }

works fine for me, printing a panel containing JTextArea, JTable,
JLabel, JButton.
one page only, showing all components and each one's text.

win98se, java1.4.0_01

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar


Thread

how to print the data wit "ashwinijain" <ashwinijain@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: how to print the data "Srik" <srik@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
    Re: how to print the data "ashwinijain" <ashwinijain@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
      Re: how to print the data "Srik" <srik@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: how to print the data "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
    Re: how to print the data "ashwinijain" <ashwinijain@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
      Re: how to print the data "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
        Re: how to print the data "ashwinijain" <ashwinijain@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: how to print the data "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: how to print the data "Ian Wilson" <ian.wilson@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: how to print the data "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000

csiph-web