Home » Eclipse Projects » Eclipse Platform » [ANN] Advanced Eclipse SWT Designer
[ANN] Advanced Eclipse SWT Designer [message #101378] |
Mon, 28 July 2003 08:15  |
Eclipse User |
|
|
|
Originally posted by: scheglov_ke.nlmk.ru
Eclipse Plugins Lab has released version 1.0 of its Advanced Eclipse SWT Designer.
Advanced Eclipse SWT Designer seamless extends Eclipse with SWT/JFace GUI designer
and set of wizards for quick start. For $299 you receive unlimited Designer upgrades,
and free e-mail support.
Free version of Advanced Eclipse SWT Designer is available
at http://www.swt-designer.com
Advanced Eclipse SWT Designer Features List:
1. Implements WYSIWYG GUI editing with native SWT controls by dragging and
dropping composites, layouts and controls.
2. Implemented as two-ways tool - generates directly Java code and enables
to change it in graphical editor or directly in source. All changes, made
directly in source code, will be displayed in the graphical designer.
3. Only pure SWT classes are used - zero overhead in runtime. There is no
any special library added to project.
4. Contains handy property editor for easy and intuitive property editing.
All changes will be immediatly displayed in the code editor and in the
graphical designer.
5. Displays component tree which makes navigation through components much
more easier.
6. Includes SWT applications, JFace dialogs and viewers creation wizards.
7. Visual menu design support.
8. Fully supports all SWT controls and JFace dialogs and viewers.
9. Fully supports SWT layout managers in the graphical editor. There are
three layout managers supported: grid, fill and row.
10. Seamlessly integrates with your existing Eclipse workspace. Just
unpack it and restart Eclipse.
11. Testing UI on the fly without compiling by clicking one button.
12. Intuitive interface. Easy to understand and comprehend.
13. Easy to get started with tutorial and samples provided.
Download Advanced Eclipse SWT Designer at http://www.swt-designer.com
--
SY, Konstantin.
|
|
| | | |
Re: [ANN] Advanced Eclipse SWT Designer [message #101894 is a reply to message #101794] |
Mon, 28 July 2003 23:22   |
Eclipse User |
|
|
|
Originally posted by: scheglov_ke.nlmk.ru
Adam Flinton <adam@_no_spam_softfab.com> wrote:
> Before I download the trial version I looked at the features section &
> it says (* being professional version only):
> # Fully supports all SWT controls and JFace dialogs and viewers.*
> Which aren't supported under the downloadable version?
In free version there is no support for Custom controls and
no support for JFace viewers (including content/label providers).
I plan to add also support for JFace applications and other JFace and
Eclipse related things: wizards, property pages, etc.
> # Testing UI on the fly without compiling by clicking one button.*
> Is the alternative just to do a "rebuild project"? Or just run as java
> application?
In reality this feature is supported in free version.
Designer adds button "Test" on toolbar to show designed form, like
in other designers, for example VS. Designer creates all controls, so
you will able to test, how you form looks and behaves. But, of course,
your logic will not work.
So, yes, alternative is running application.
--
SY, Konstantin.
|
|
|
Re: [ANN] Advanced Eclipse SWT Designer [message #102065 is a reply to message #101894] |
Tue, 29 July 2003 06:58   |
Eclipse User |
|
|
|
Konstantin Scheglov wrote:
> Adam Flinton <adam@_no_spam_softfab.com> wrote:
> > Before I download the trial version I looked at the features section &
> > it says (* being professional version only):
> > # Fully supports all SWT controls and JFace dialogs and viewers.*
> > Which aren't supported under the downloadable version?
> In free version there is no support for Custom controls and
> no support for JFace viewers (including content/label providers).
> I plan to add also support for JFace applications and other JFace and
> Eclipse related things: wizards, property pages, etc.
I think JFace viewers should be supported in free version.
> > # Testing UI on the fly without compiling by clicking one button.*
> > Is the alternative just to do a "rebuild project"? Or just run as java
> > application?
> In reality this feature is supported in free version.
> Designer adds button "Test" on toolbar to show designed form, like
> in other designers, for example VS. Designer creates all controls, so
> you will able to test, how you form looks and behaves. But, of course,
> your logic will not work.
> So, yes, alternative is running application.
|
|
| | |
Re: [ANN] Advanced Eclipse SWT Designer [message #102149 is a reply to message #102112] |
Tue, 29 July 2003 08:05   |
Eclipse User |
|
|
|
Originally posted by: scheglov_ke.nlmk.ru
David Goodenough <david.goodenough@btconnect.com> wrote:
>> Yes, there is reason.
>> Designer shows screenshots of real controls as figures in GEF.
>> I know, how to make screenshots under Windows, but don't know,
>> how to do this under Linux. May be you know this?
>>
> Well the easiest way to do this is using GIMP. It will take screen
> shots and store them in just about any graphics format you want. But
> you then get the question of which set of controls you want. There
> are two different graphics systems, Motif and Gtk, which look quite
> different - so you would need two sets.
> If you have an SWT program that you would like me to run and take
> a screen shot of let me know and I will take as picture of it for you
> to chop up.
Problem is that I need to make screenshots at runtime.
This is how I create images to show as figures in GEF.
I.e. I create real SWT form, make screenshot and then use it
to show in designer. I don't draw widgets myself, I use their real
images, this is why form in designer looks same as runned form.
--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
|
|
|
Re: [ANN] Advanced Eclipse SWT Designer [message #102163 is a reply to message #102149] |
Tue, 29 July 2003 09:10   |
Eclipse User |
|
|
|
Konstantin Scheglov wrote:
> David Goodenough <david.goodenough@btconnect.com> wrote:
>
>>> Yes, there is reason.
>>> Designer shows screenshots of real controls as figures in GEF.
>>> I know, how to make screenshots under Windows, but don't know,
>>> how to do this under Linux. May be you know this?
>>>
>> Well the easiest way to do this is using GIMP. It will take screen
>> shots and store them in just about any graphics format you want. But
>> you then get the question of which set of controls you want. There
>> are two different graphics systems, Motif and Gtk, which look quite
>> different - so you would need two sets.
>
>> If you have an SWT program that you would like me to run and take
>> a screen shot of let me know and I will take as picture of it for you
>> to chop up.
> Problem is that I need to make screenshots at runtime.
> This is how I create images to show as figures in GEF.
> I.e. I create real SWT form, make screenshot and then use it
> to show in designer. I don't draw widgets myself, I use their real
> images, this is why form in designer looks same as runned form.
>
> --
> SY, Konstantin.
> Advanced Eclipse SWT Designer (http://www.swt-designer.com)
How do you take the screenshot in Windows. Are you using an external
application or are you using a facility in SWT/GEF?
David
|
|
| | |
Re: [ANN] Advanced Eclipse SWT Designer [message #102587 is a reply to message #101894] |
Tue, 29 July 2003 14:18   |
Eclipse User |
|
|
|
Originally posted by: adam._NO_SPAM_softfab.com
Konstantin Scheglov wrote:
> Adam Flinton <adam@_no_spam_softfab.com> wrote:
>
>
>>Before I download the trial version I looked at the features section &
>>it says (* being professional version only):
>
>
>># Fully supports all SWT controls and JFace dialogs and viewers.*
>>Which aren't supported under the downloadable version?
>
> In free version there is no support for Custom controls and
> no support for JFace viewers (including content/label providers).
> I plan to add also support for JFace applications and other JFace and
> Eclipse related things: wizards, property pages, etc.
>
Ah right. Things like say a JFace Tree viewer? So I can create the
composite on which to put the Tree but not the Tree itself?
BTW re the other eclispe things...go for it. An all singing all dancing
SWT & plugin designer is what we're looking for (preferably with the
ability to "export as standalone app").
>
>># Testing UI on the fly without compiling by clicking one button.*
>>Is the alternative just to do a "rebuild project"? Or just run as java
>>application?
>
> In reality this feature is supported in free version.
> Designer adds button "Test" on toolbar to show designed form, like
> in other designers, for example VS. Designer creates all controls, so
> you will able to test, how you form looks and behaves. But, of course,
> your logic will not work.
> So, yes, alternative is running application.
>
OK.
Great I will d/l it & give it a go.
Adam
|
|
| |
Re: [ANN] Advanced Eclipse SWT Designer [message #102748 is a reply to message #102510] |
Tue, 29 July 2003 23:30   |
Eclipse User |
|
|
|
Originally posted by: scheglov_ke.nlmk.ru
Valentino Kyriakides <vkyr@nospam-ision.net> wrote:
>> I.e. I create real SWT form, make screenshot and then use it
>> to show in designer. I don't draw widgets myself, I use their real
>> images, this is why form in designer looks same as runned form.
> Konstantin, I don't know if this is of any help for you, but the SWT
> snippets show a way how to perform screenshots. Beside this,
> http://www.bdaum.de/eclipse/eDump is an Eclipse based screenshot utility and
> handles this *maybe* in a portable manner (?). You may ask the eDump author
> "Berthold Daum" if he is willing to share some of his experiences here with
> you, so that your Eclipse SWT Designer might can benefit from it.
eDump just makes copy of screen, i.e. something like this:
GC displayGC = new GC(display);
Rectangle displayBounds = display.getBounds();
Image displayImage = new Image(display, displayBounds.width, displayBounds.height);
displayGC.copyArea(displayImage, 0, 0);
displayGC.dispose();
return displayImage;
I can do this, but in this case I will need to show form on screen before
making shot. And directly after this I will hide it. This means, that user
will see flicker. This is not very good... :-(
> However, the above are just rough suggestions and I don't know in detail
> what you would need or not in order to perform the screenshots you would
> need...
Yes, I understand.
--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
|
|
| |
Re: [ANN] Advanced Eclipse SWT Designer [message #102898 is a reply to message #102748] |
Wed, 30 July 2003 05:25   |
Eclipse User |
|
|
|
You can install VMWare in your windows workstation , then install linux in
VMWare , run designer in linux(VMWare) , then make screenshot for VMWare
window.
Konstantin Scheglov wrote:
> Valentino Kyriakides <vkyr@nospam-ision.net> wrote:
> >> I.e. I create real SWT form, make screenshot and then use it
> >> to show in designer. I don't draw widgets myself, I use their real
> >> images, this is why form in designer looks same as runned form.
> > Konstantin, I don't know if this is of any help for you, but the SWT
> > snippets show a way how to perform screenshots. Beside this,
> > http://www.bdaum.de/eclipse/eDump is an Eclipse based screenshot utility
and
> > handles this *maybe* in a portable manner (?). You may ask the eDump author
> > "Berthold Daum" if he is willing to share some of his experiences here with
> > you, so that your Eclipse SWT Designer might can benefit from it.
> eDump just makes copy of screen, i.e. something like this:
> GC displayGC = new GC(display);
> Rectangle displayBounds = display.getBounds();
> Image displayImage = new Image(display, displayBounds.width,
displayBounds.height);
> displayGC.copyArea(displayImage, 0, 0);
> displayGC.dispose();
> return displayImage;
> I can do this, but in this case I will need to show form on screen before
> making shot. And directly after this I will hide it. This means, that user
> will see flicker. This is not very good... :-(
> > However, the above are just rough suggestions and I don't know in detail
> > what you would need or not in order to perform the screenshots you would
> > need...
> Yes, I understand.
|
|
|
Re: [ANN] Advanced Eclipse SWT Designer [message #102930 is a reply to message #102898] |
Wed, 30 July 2003 06:20   |
Eclipse User |
|
|
|
Originally posted by: scheglov_ke.nlmk.ru
kite <yipeng97@yahoo.com> wrote:
Problem is that I need to make screen shots in runtime, for
real SWT controls, which were created in designer.
> You can install VMWare in your windows workstation , then install linux in
> VMWare , run designer in linux(VMWare) , then make screenshot for VMWare
> window.
> Konstantin Scheglov wrote:
>> Valentino Kyriakides <vkyr@nospam-ision.net> wrote:
>> >> I.e. I create real SWT form, make screenshot and then use it
>> >> to show in designer. I don't draw widgets myself, I use their real
>> >> images, this is why form in designer looks same as runned form.
>> > Konstantin, I don't know if this is of any help for you, but the SWT
>> > snippets show a way how to perform screenshots. Beside this,
>> > http://www.bdaum.de/eclipse/eDump is an Eclipse based screenshot utility
> and
>> > handles this *maybe* in a portable manner (?). You may ask the eDump author
>> > "Berthold Daum" if he is willing to share some of his experiences here with
>> > you, so that your Eclipse SWT Designer might can benefit from it.
>> eDump just makes copy of screen, i.e. something like this:
>> GC displayGC = new GC(display);
>> Rectangle displayBounds = display.getBounds();
>> Image displayImage = new Image(display, displayBounds.width,
> displayBounds.height);
>> displayGC.copyArea(displayImage, 0, 0);
>> displayGC.dispose();
>> return displayImage;
>> I can do this, but in this case I will need to show form on screen before
>> making shot. And directly after this I will hide it. This means, that user
>> will see flicker. This is not very good... :-(
>> > However, the above are just rough suggestions and I don't know in detail
>> > what you would need or not in order to perform the screenshots you would
>> > need...
>> Yes, I understand.
--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
|
|
|
Re: [ANN] Advanced Eclipse SWT Designer [message #103094 is a reply to message #102930] |
Wed, 30 July 2003 09:20   |
Eclipse User |
|
|
|
I think the term "screenshot" has been the source of much confusion. This isn't
a typical screenshot that someone takes and posts on a website for people to see
what the editor looks like. In this case, as has been said, the "screenshot" is
being created at *runtime*. What's happening (and correct me if I'm wrong) is
an SWT control is being created (offscreen), the editor paints that control onto
an image (aka "screenshot") and that image is used inside the editor to show the
user what the control currently looks like. Then the user can alter the
contol's attributes through the editor, which will update the control, repaint
the control onto the image, then update the editor with the new image. I could
have some details wrong, but I believe that's the main idea.
Eric
Konstantin Scheglov wrote:
> kite <yipeng97@yahoo.com> wrote:
>
>
> Problem is that I need to make screen shots in runtime, for
> real SWT controls, which were created in designer.
>
>
>>You can install VMWare in your windows workstation , then install linux in
>>VMWare , run designer in linux(VMWare) , then make screenshot for VMWare
>>window.
>
>
>>Konstantin Scheglov wrote:
>
>
>>>Valentino Kyriakides <vkyr@nospam-ision.net> wrote:
>
>
>>>>> I.e. I create real SWT form, make screenshot and then use it
>>>>>to show in designer. I don't draw widgets myself, I use their real
>>>>>images, this is why form in designer looks same as runned form.
>>>>
>>>>Konstantin, I don't know if this is of any help for you, but the SWT
>>>>snippets show a way how to perform screenshots. Beside this,
>>>>http://www.bdaum.de/eclipse/eDump is an Eclipse based screenshot utility
>>
>>and
>>
>>>>handles this *maybe* in a portable manner (?). You may ask the eDump author
>>>>"Berthold Daum" if he is willing to share some of his experiences here with
>>>>you, so that your Eclipse SWT Designer might can benefit from it.
>>>
>>> eDump just makes copy of screen, i.e. something like this:
>>> GC displayGC = new GC(display);
>>> Rectangle displayBounds = display.getBounds();
>>> Image displayImage = new Image(display, displayBounds.width,
>>
>>displayBounds.height);
>>
>>> displayGC.copyArea(displayImage, 0, 0);
>>> displayGC.dispose();
>>> return displayImage;
>>> I can do this, but in this case I will need to show form on screen before
>>>making shot. And directly after this I will hide it. This means, that user
>>>will see flicker. This is not very good... :-(
>
>
>
>>>>However, the above are just rough suggestions and I don't know in detail
>>>>what you would need or not in order to perform the screenshots you would
>>>>need...
>>>
>>> Yes, I understand.
>
>
>
>
>
|
|
| | |
Re: [ANN] Advanced Eclipse SWT Designer [message #103805 is a reply to message #103106] |
Thu, 31 July 2003 06:09   |
Eclipse User |
|
|
|
Originally posted by: scheglov_ke.nlmk.ru
Michael R Head <burner@zclipse.org> wrote:
>> Problem is that I need to make screen shots in runtime, for
>> real SWT controls, which were created in designer.
> Maybe I'm missing something, but what's wrong with using java.awt.Robot's
> screen grabbing facility for this case?
I don't have problem with screen grabbing, I don't want to show SWT Shell
on screen. This will produce flicker, and not very convinient for users. :-(
I am going to use "fake" controls, i.e. draw someting like real control
myself, if Designer is used not under Windows, i.e. Linux and Mac.
What do you think, is this acceptable?
--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
|
|
|
Re: [ANN] Advanced Eclipse SWT Designer [message #103819 is a reply to message #103094] |
Thu, 31 July 2003 06:10   |
Eclipse User |
|
|
|
Originally posted by: scheglov_ke.nlmk.ru
Eric Bordeau <ebordeau@us.ibm.com> wrote:
You are absolutely right, Eric.
> I think the term "screenshot" has been the source of much confusion. This isn't
> a typical screenshot that someone takes and posts on a website for people to see
> what the editor looks like. In this case, as has been said, the "screenshot" is
> being created at *runtime*. What's happening (and correct me if I'm wrong) is
> an SWT control is being created (offscreen), the editor paints that control onto
> an image (aka "screenshot") and that image is used inside the editor to show the
> user what the control currently looks like. Then the user can alter the
> contol's attributes through the editor, which will update the control, repaint
> the control onto the image, then update the editor with the new image. I could
> have some details wrong, but I believe that's the main idea.
> Eric
> Konstantin Scheglov wrote:
>> kite <yipeng97@yahoo.com> wrote:
>>
>>
>> Problem is that I need to make screen shots in runtime, for
>> real SWT controls, which were created in designer.
>>
>>
>>>You can install VMWare in your windows workstation , then install linux in
>>>VMWare , run designer in linux(VMWare) , then make screenshot for VMWare
>>>window.
>>
>>
>>>Konstantin Scheglov wrote:
>>
>>
>>>>Valentino Kyriakides <vkyr@nospam-ision.net> wrote:
>>
>>
>>>>>> I.e. I create real SWT form, make screenshot and then use it
>>>>>>to show in designer. I don't draw widgets myself, I use their real
>>>>>>images, this is why form in designer looks same as runned form.
>>>>>
>>>>>Konstantin, I don't know if this is of any help for you, but the SWT
>>>>>snippets show a way how to perform screenshots. Beside this,
>>>>>http://www.bdaum.de/eclipse/eDump is an Eclipse based screenshot utility
>>>
>>>and
>>>
>>>>>handles this *maybe* in a portable manner (?). You may ask the eDump author
>>>>>"Berthold Daum" if he is willing to share some of his experiences here with
>>>>>you, so that your Eclipse SWT Designer might can benefit from it.
>>>>
>>>> eDump just makes copy of screen, i.e. something like this:
>>>> GC displayGC = new GC(display);
>>>> Rectangle displayBounds = display.getBounds();
>>>> Image displayImage = new Image(display, displayBounds.width,
>>>
>>>displayBounds.height);
>>>
>>>> displayGC.copyArea(displayImage, 0, 0);
>>>> displayGC.dispose();
>>>> return displayImage;
>>>> I can do this, but in this case I will need to show form on screen before
>>>>making shot. And directly after this I will hide it. This means, that user
>>>>will see flicker. This is not very good... :-(
>>
>>
>>
>>>>>However, the above are just rough suggestions and I don't know in detail
>>>>>what you would need or not in order to perform the screenshots you would
>>>>>need...
>>>>
>>>> Yes, I understand.
>>
>>
>>
>>
>>
--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
|
|
| |
Re: [ANN] Advanced Eclipse SWT Designer [message #104083 is a reply to message #103805] |
Thu, 31 July 2003 11:50   |
Eclipse User |
|
|
|
Konstantin Scheglov wrote:
> Michael R Head <burner@zclipse.org> wrote:
>
>>> Problem is that I need to make screen shots in runtime, for
>>> real SWT controls, which were created in designer.
>> Maybe I'm missing something, but what's wrong with using java.awt.Robot's
>> screen grabbing facility for this case?
> I don't have problem with screen grabbing, I don't want to show SWT
> Shell
> on screen. This will produce flicker, and not very convinient for users.
> :-(
>
> I am going to use "fake" controls, i.e. draw someting like real control
> myself, if Designer is used not under Windows, i.e. Linux and Mac.
> What do you think, is this acceptable?
>
Would it not also be sensible to submit this as a feature request to the
bug database? That way you would get (if they accepted it) a system
independant API for doing this and everyone would be happy.
David
|
|
| | |
Re: [ANN] Advanced Eclipse SWT Designer [message #104543 is a reply to message #104083] |
Fri, 01 August 2003 02:33   |
Eclipse User |
|
|
|
Originally posted by: scheglov_ke.nlmk.ru
David Goodenough <david.goodenough@btconnect.com> wrote:
>> I am going to use "fake" controls, i.e. draw someting like real control
>> myself, if Designer is used not under Windows, i.e. Linux and Mac.
>> What do you think, is this acceptable?
> Would it not also be sensible to submit this as a feature request to the
> bug database? That way you would get (if they accepted it) a system
> independant API for doing this and everyone would be happy.
I don't think, that anyone will happy if I will say:
"Yes, you can use Designer, but with Eclipse 4.0. May be...".
I can not wait, until feature request will be implemented, I need
to create tool now, not in next year.
So, feature request is good, but this will not help me.
--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
|
|
| |
Re: [ANN] Advanced Eclipse SWT Designer [message #104708 is a reply to message #104543] |
Fri, 01 August 2003 07:20   |
Eclipse User |
|
|
|
Konstantin Scheglov wrote:
> David Goodenough <david.goodenough@btconnect.com> wrote:
>
>>> I am going to use "fake" controls, i.e. draw someting like real
>>> control
>>> myself, if Designer is used not under Windows, i.e. Linux and Mac.
>>> What do you think, is this acceptable?
>> Would it not also be sensible to submit this as a feature request to the
>> bug database? That way you would get (if they accepted it) a system
>> independant API for doing this and everyone would be happy.
> I don't think, that anyone will happy if I will say:
> "Yes, you can use Designer, but with Eclipse 4.0. May be...".
> I can not wait, until feature request will be implemented, I need
> to create tool now, not in next year.
> So, feature request is good, but this will not help me.
>
While Windows users might not be pleased, Linux users will have to wait
until you find a way to do this anyway. Putting pressure on the Eclipse
team to add this API sooner rather than later by giving them a real reason
why it is needed seems like a good solution for the medium term.
David
|
|
| |
Re: [ANN] Advanced Eclipse SWT Designer [message #105250 is a reply to message #104581] |
Sat, 02 August 2003 01:51   |
Eclipse User |
|
|
|
Originally posted by: bob.objfac.com
"Konstantin Scheglov" <scheglov_ke@nlmk.ru> wrote in message
news:0Aeort$VDHA.748@fairy.ao.nlmk...
> Bob Foster <bob@objfac.com> wrote:
>
> >> I am going to use "fake" controls, i.e. draw someting like real
control
> >> myself, if Designer is used not under Windows, i.e. Linux and Mac.
> >> What do you think, is this acceptable?
> > Not on Mac.
> Because on Mac controls are so beautiful? :-)
Yes.
> Do you know, how to make "screenshot" for SWT form on Mac?
I saved the following from a newsgroup posting. It says there is a snippet
on this.
Bob Foster
--------------------------------
Hi Peter,
The following snippet uses a GC to capture a widget's appearance to an
Image. You can then print this using the same approach you've used
before. This example will soon be added to the swt snippets collection.
public class CaptureWidgetImage {
public static void main(String[] args) {
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setText("Widget");
shell.setBounds(10, 10, 200, 200);
final Table table = new Table(shell, SWT.MULTI);
table.setLinesVisible(true);
table.setBounds(10, 10, 100, 100);
for (int i = 0; i < 9; i++) {
new TableItem(table, SWT.NONE).setText("item" + i);
}
Button button = new Button(shell, SWT.PUSH);
button.setText("Capture");
button.setBounds(10, 140, 50, 20);
button.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event) {
Point tableSize = table.getSize();
GC gc = new GC(table);
final Image image =
new Image(display, tableSize.x, tableSize.y);
gc.copyArea(image, 0, 0);
gc.dispose();
Shell popup = new Shell(shell);
popup.setText("Image");
popup.setBounds(50, 50, 200, 200);
Canvas canvas = new Canvas(popup, SWT.NONE);
canvas.setBounds(10, 10, 150, 150);
canvas.addPaintListener(new PaintListener() {
public void paintControl(PaintEvent e) {
e.gc.drawImage(image, 0, 0);
}
});
popup.open();
}
});
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
}
Grant
Peter Goetz wrote:
> Hi there!
> I've got a question about printing with SWT.
> I already managed to print text and images with a GC and a Printer-Device.
> Is it possible to print whole SWT-Widgets like a List or Table?
> Thanks a lot for your help in advance,
> Peter
|
|
| |
Goto Forum:
Current Time: Tue Jul 22 16:17:42 EDT 2025
Powered by FUDForum. Page generated in 0.06938 seconds
|