Home » Eclipse Projects » Standard Widget Toolkit (SWT) » KPrint - A SWT print layout utility
KPrint - A SWT print layout utility [message #441981] |
Thu, 26 August 2004 20:28 |
Eclipse User |
|
|
|
Originally posted by: friederich.kupzog.de
Hello SWT programmers,
as usual in my examination period I try to relax by programming ;)
Here comes the result:
KPrint is a collection of Java classes that allows the user to generate
print layouts within the SWT framework. The way a layout is created is
comparable to the technique used to generate GUI layouts in SWT. You
have some global container (Shell in SWT, PDocument in KPrint), on which
you can place other elements (PBoxes).
For those who already use KTable: you can print KTables using the KPrint
package.
KPrint.jar can be freely downloaded from
http://www.kupzog.de/fkmk_uk/Programming/Downloads/downloads .html
Have a look and let me know if one can use it.
Well, I used it very successfully in my applications so far.
Regards,
Friederich
--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
|
|
|
Re: KPrint - A SWT print layout utility [message #442262 is a reply to message #441981] |
Tue, 31 August 2004 12:37 |
Mark Messages: 61 Registered: July 2009 |
Member |
|
|
Hello Friedrich,
This sounds exactly what I'm looking for, but it seems the site is down :(
Basically I have a ScrolledComposite that I wish to print.... :)
/**
* Build the Questionnaire GUI
*
*/
private Composite buildQuestionnaire() {
scheduleComp = new Composite(questionnaire, SWT.NONE);
scheduleComp.setLayout(new FormLayout());
FormData data = new FormData();
data.top = new FormAttachment(0, 0);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(100, 0);
data.bottom = new FormAttachment(100, 0);
scheduleComp.setLayoutData(data);
final ScrolledComposite scrollComp =
new ScrolledComposite(scheduleComp, SWT.BORDER | SWT.V_SCROLL);
scrollComp.setAlwaysShowScrollBars(true);
data = new FormData();
data.top = new FormAttachment(0, 0);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(100, 0);
data.bottom = new FormAttachment(100, 0);
scrollComp.setLayoutData(data);
final Composite contentComp = new Composite(scrollComp, SWT.NONE);
scrollComp.setContent(contentComp);
contentComp.setLayout(new FormLayout());
scrollComp.setExpandHorizontal(true);
FormLayout l = new FormLayout();
l.marginHeight = 10;
l.marginWidth = 10;
contentComp.setLayout(l);
return contentComp;
}
Mark Thomas
Client Developer
Friederich Kupzog wrote:
> Hello SWT programmers,
>
> as usual in my examination period I try to relax by programming ;)
> Here comes the result:
>
> KPrint is a collection of Java classes that allows the user to generate
> print layouts within the SWT framework. The way a layout is created is
> comparable to the technique used to generate GUI layouts in SWT. You
> have some global container (Shell in SWT, PDocument in KPrint), on which
> you can place other elements (PBoxes).
> For those who already use KTable: you can print KTables using the KPrint
> package.
>
> KPrint.jar can be freely downloaded from
> http://www.kupzog.de/fkmk_uk/Programming/Downloads/downloads .html
>
> Have a look and let me know if one can use it.
> Well, I used it very successfully in my applications so far.
>
> Regards,
> Friederich
>
> --
> Friederich Kupzog
> Elektronik & Software
> Neusser Str. 5-7
> 50670 Köln
> Tel 0241 160696-1
> Fax 0221 726670
> www.kupzog.de/fkmk
|
|
|
Re: KPrint - A SWT print layout utility [message #442372 is a reply to message #442262] |
Thu, 02 September 2004 10:51 |
Eclipse User |
|
|
|
Originally posted by: friederich.kupzog.de
Hello Mark,
is the site still down for you? For me, it works.
Regards,
Friederich
Mark wrote:
> Hello Friedrich,
>
> This sounds exactly what I'm looking for, but it seems the site is down :(
>
> Basically I have a ScrolledComposite that I wish to print.... :)
>
> /**
> * Build the Questionnaire GUI
> *
> */
> private Composite buildQuestionnaire() {
> scheduleComp = new Composite(questionnaire, SWT.NONE);
>
> scheduleComp.setLayout(new FormLayout());
> FormData data = new FormData();
> data.top = new FormAttachment(0, 0);
> data.left = new FormAttachment(0, 0);
> data.right = new FormAttachment(100, 0);
> data.bottom = new FormAttachment(100, 0);
> scheduleComp.setLayoutData(data);
>
> final ScrolledComposite scrollComp =
> new ScrolledComposite(scheduleComp, SWT.BORDER | SWT.V_SCROLL);
> scrollComp.setAlwaysShowScrollBars(true);
>
> data = new FormData();
> data.top = new FormAttachment(0, 0);
> data.left = new FormAttachment(0, 0);
> data.right = new FormAttachment(100, 0);
> data.bottom = new FormAttachment(100, 0);
> scrollComp.setLayoutData(data);
>
> final Composite contentComp = new Composite(scrollComp, SWT.NONE);
> scrollComp.setContent(contentComp);
> contentComp.setLayout(new FormLayout());
> scrollComp.setExpandHorizontal(true);
> FormLayout l = new FormLayout();
> l.marginHeight = 10;
> l.marginWidth = 10;
> contentComp.setLayout(l);
>
> return contentComp;
>
>
> }
>
>
> Mark Thomas
> Client Developer
>
>
> Friederich Kupzog wrote:
>
>> Hello SWT programmers,
>>
>> as usual in my examination period I try to relax by programming ;)
>> Here comes the result:
>>
>> KPrint is a collection of Java classes that allows the user to
>> generate print layouts within the SWT framework. The way a layout is
>> created is comparable to the technique used to generate GUI layouts in
>> SWT. You have some global container (Shell in SWT, PDocument in
>> KPrint), on which you can place other elements (PBoxes).
>> For those who already use KTable: you can print KTables using the
>> KPrint package.
>>
>> KPrint.jar can be freely downloaded from
>> http://www.kupzog.de/fkmk_uk/Programming/Downloads/downloads .html
>>
>> Have a look and let me know if one can use it.
>> Well, I used it very successfully in my applications so far.
>>
>> Regards,
>> Friederich
>>
>> --
>> Friederich Kupzog
>> Elektronik & Software
>> Neusser Str. 5-7
>> 50670 Köln
>> Tel 0241 160696-1
>> Fax 0221 726670
>> www.kupzog.de/fkmk
--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
|
|
|
Goto Forum:
Current Time: Fri Apr 26 06:59:11 GMT 2024
Powered by FUDForum. Page generated in 0.03166 seconds
|