Skip to main content
summaryrefslogtreecommitdiffstats
blob: 90a2723f01c5c3daaca9cb8a1eb0d960cfcc0dd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");	require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); 	require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); 	$App 	= new App();	$Nav	= new Nav();	$Menu 	= new Menu();		include($App->getProjectCommon());

$pageTitle = "SWT Snippets";

ob_start();
?>
<div id="midcolumn">
<h1>SWT Snippets</h1>

<p>Snippets are minimal stand-alone programs that demonstrate specific
techniques or functionality.  Often a small example is the easiest way to
understand how to use a particular feature.
(If you are looking for large examples, like <em>ControlExample</em>, see the <a href="/swt/examples.php">SWT Examples</a>,
and if you are programming with JFace, you may find these <a href="https://wiki.eclipse.org/index.php/JFaceSnippets">JFace Snippets</a> useful).</p>

<p>Snippets also help isolate problems.  The best way to report an SWT
bug is to write your own snippet showing the problem and paste it into
the bug report.  For a snippet template, see the
"<a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet1.java">Hello World</a>"
example.</p>

<p>Note that the examples here are often edited for brevity rather than
completeness. They are intended to guide the reader towards the correct
solution, rather than be finished products.  These snippets are tested
against the HEAD stream and may sometimes reference new API or require
bug fixes from there.</p>

<p>To run a snippet, simply
<a href="/swt/eclipse.php">import SWT into your Eclipse workspace</a>,
create a new Java project that depends on SWT, copy the desired snippet to the clipboard,
and paste it into a new snippet class. (If you are using eclipse 3.2 M1 or earlier,
you need to create the class using the <i>New Class</i> wizard before pasting; but
since 3.2 M1 you can simply select your project and paste, and the class is created for you). 
Run by selecting the class and then selecting <i>Run &gt; Run As &gt; Java Application</i>.</p>

<p>To contribute a new snippet, 
<a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform&bug_severity=enhancement&component=SWT&short_desc=New%20Snippet%20Contribution%3A%20%5Bsummary%20here%5D&comment=Eclipse%20build%20id%20or%20SWT%20version%3A%20%5Bbuild%20id%20here%5D%0D%0A%0D%0APlatform%28s%29%20tested%20on%3A%20%5Blist%20platform%28s%29%20here%5D%0D%0A%0D%0ASnippet%20title%3A%20%5Bsnippet%20title%20or%20short%20description%20here%5D%0D%0A%0D%0ASnippet%20code%3A%20%5Bpaste%20snippet%20code%20here%5D">
create a snippet contribution report in Bugzilla</a>. Thanks in advance for your contribution!</p>

  <ul>
    <li id="helloworld"><b>"Hello World"</b>
    <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet1.java">"Hello World"</a></li>
      </ul>
      <p></p></li>

    <li id="accessibility"><b>Accessibility</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet162.java">using an accessible listener to provide state information</a> &ndash; <a title="Preview for Snippet 162" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet162.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet164.java">provide text that will be spoken for an image button</a> &ndash; <a title="Preview for Snippet 164" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet164.png">(preview)</a></li>
		<li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet291.java">give accessible names to a tree and its tree items</a> &ndash; <a title="Preview for Snippet 291" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet291.png">(preview)</a></li>
		<li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet334.java">respond to text-based questions from an AT</a> &ndash; <a title="Preview for Snippet 334" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet334.png">(preview)</a></li>
		<li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet340.java">tell a screen reader about updates to a non-focused descriptive area</a> &ndash; <a title="Preview for Snippet 340" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet340.png">(preview)</a></li>
		<li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet350.java">use accessible relations to provide additional information to an AT</a> &ndash; <a title="Preview for Snippet 350" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet350.png">(preview)</a></li>
		<li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet357.java">provide a way for an AT to set text attributes in a StyledText</a> &ndash; <a title="Preview for Snippet 357" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet357.png">(preview)</a></li>
		<li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet363.java">declare a message area to be a "live region"</a> &ndash; <a title="Preview for Snippet 363" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet363.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="browser"><b>Browser</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet148.java">check if the browser is available or not</a> &ndash; <a title="Preview for Snippet 148" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet148.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet128.java">bring up a browser (single window)</a> &ndash; <a title="Preview for Snippet 128" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet128.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet173.java">bring up a browser with pop-up blocker</a> &ndash; <a title="Preview for Snippet 173" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet173.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet270.java">bring up a browser with pop-up window support</a> &ndash; <a title="Preview for Snippet 270" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet270.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet136.java">render HTML from memory</a> &ndash; <a title="Preview for Snippet 136" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet136.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet137.java">render HTML that includes relative links from memory</a> &ndash; <a title="Preview for Snippet 137" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet137.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet327.java">render HTML from memory in response to a link click</a> &ndash; <a title="Preview for Snippet 327" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet327.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet303.java">listen for DOM mousedown events with JavaScript (SWT 3.4 and earlier)</a> &ndash; <a title="Preview for Snippet 303" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet303.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet362.java">listen for DOM mousedown events with JavaScript (SWT 3.5 and newer)</a> &ndash; <a title="Preview for Snippet 362" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet362.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet161.java">modify DOM (execute JavaScript)</a> &ndash; <a title="Preview for Snippet 161" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet161.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet160.java">query DOM node value (SWT 3.4 and earlier)</a> &ndash; <a title="Preview for Snippet 160" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet160.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet308.java">query DOM node value (SWT 3.5 and newer)</a> &ndash; <a title="Preview for Snippet 308" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet308.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet159.java">modify HTML title tag</a> &ndash; <a title="Preview for Snippet 159" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet159.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet317.java">provide credentials for a basic authentication challenge</a> &ndash; <a title="Preview for Snippet 317" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet317.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet307.java">call Java from JavaScript</a> &ndash; <a title="Preview for Snippet 307" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet307.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet326.java">close a Browser such that it can be cancelled by an onbeforeunload handler</a> &ndash; <a title="Preview for Snippet 326" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet326.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet330.java">send custom headers and post data with HTTP requests</a> &ndash; <a title="Preview for Snippet 330" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet330.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet351.java">WebKit in a browser</a> &ndash; <a title="Preview for Snippet 351" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet351.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet372.java">Resize the shell to the fit the html content after it's loaded</a> &ndash; <a title="Preview for Snippet 372" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet372.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet260.java?h=R4_7_maintenance">Mozilla in a browser</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet267.java?h=R4_7_maintenance">toggle a Mozilla Browser between Design mode and View mode</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet277.java?h=R4_7_maintenance">implement a custom download handler for a Mozilla Browser</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet306.java?h=R4_7_maintenance">show an HTML element-specific context menu in a Mozilla Browser</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet321.java?h=R4_7_maintenance">examine request and response headers in a Mozilla Browser</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet323.java?h=R4_7_maintenance">view DOM tree and edit node values in a Mozilla Browser</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet329.java?h=R4_7_maintenance">zoom HTML page content in a Mozilla Browser</a></li>
      </ul>
      <p></p></li>

    <li id="busyindicator"><b>BusyIndicator</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet130.java">display busy cursor during long running task</a> &ndash; <a title="Preview for Snippet 130" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet130.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="button"><b>Button</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet108.java">set the default button</a> &ndash; <a title="Preview for Snippet 108" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet108.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet169.java">make a toggle button have radio behavior</a> &ndash; <a title="Preview for Snippet 169" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet169.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet224.java">implement radio behavior for setSelection()</a> &ndash; <a title="Preview for Snippet 224" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet224.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet206.java">a button with text and image</a> &ndash; <a title="Preview for Snippet 206" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet206.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet293.java">create a tri-state button</a> &ndash; <a title="Preview for Snippet 293" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet293.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet315.java">create a tri-state button (toggle three states)</a> &ndash; <a title="Preview for Snippet 315" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet315.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet294.java">create a non-rectangular button</a> &ndash; <a title="Preview for Snippet 294" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet294.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet345.java">create buttons with wrapped titles</a> &ndash; <a title="Preview for Snippet 345" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet345.png">(preview)</a></li>
       </ul>
      <p></p></li>

    <li id="canvas"><b>Canvas</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet245.java">paint a circle in a canvas</a> &ndash; <a title="Preview for Snippet 245" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet245.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet48.java">scroll an image (flicker free, no double buffering)</a> &ndash; <a title="Preview for Snippet 48" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet48.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet21.java">implement tab traversal (behave like a tab group)</a> &ndash; <a title="Preview for Snippet 21" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet21.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet275.java">update a portion of a Canvas frequently</a> &ndash; <a title="Preview for Snippet 275" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet275.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet290.java">ignore 2nd mouse up event after double-click</a></li>
      </ul>
      <p></p></li>

    <li id="caret"><b>Caret</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet74.java">create a caret</a> &ndash; <a title="Preview for Snippet 74" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet74.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet43.java">create a caret (using an image)</a> &ndash; <a title="Preview for Snippet 43" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet43.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="ccombo"><b>CCombo</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet39.java">create a ccombo</a> &ndash; <a title="Preview for Snippet 39" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet39.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="clipboard"><b>Clipboard</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet94.java">copy and paste data with the clipboard</a> &ndash; <a title="Preview for Snippet 94" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet94.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet282.java">copy and paste image with the clipboard using ImageTransfer</a> &ndash; <a title="Preview for Snippet 282" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet282.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet122.java">enable/disable menu depending on clipboard content availability</a> &ndash; <a title="Preview for Snippet 122" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet122.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="color"><b>Color and RGB</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet208.java">adjust hue, brightness and saturation of a color</a> &ndash; <a title="Preview for Snippet 208" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet208.png">(preview)</a></li>
     </ul>
      <p></p></li>
      
    <li id="combo"><b>Combo</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet26.java">create a combo box (non-editable)</a> &ndash; <a title="Preview for Snippet 26" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet26.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet24.java">detect return in a combo box (default selection)</a> &ndash; <a title="Preview for Snippet 24" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet24.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet147.java">prevent CR from going to the default button</a> &ndash; <a title="Preview for Snippet 147" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet147.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet269.java">set the caret position within a combo's text</a> &ndash; <a title="Preview for Snippet 269" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet269.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet289.java">add a new number item to a combo box</a> &ndash; <a title="Preview for Snippet 289" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet289.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="composite"><b>Composite</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet9.java">scroll a child control automatically</a> &ndash; <a title="Preview for Snippet 9" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet9.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet75.java">set the tab traversal order of children</a> &ndash; <a title="Preview for Snippet 75" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet75.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet98.java">create and dispose children of a composite</a> &ndash; <a title="Preview for Snippet 98" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet98.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet115.java">force radio behavior on two different composites</a> &ndash; <a title="Preview for Snippet 115" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet115.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet46.java">intercept mouse events (drag a button with the mouse)</a> &ndash; <a title="Preview for Snippet 46" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet46.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet237.java">inherit a background color or image</a> &ndash; <a title="Preview for Snippet 237" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet237.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="control"><b>Control</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet14.java">detect mouse enter, exit and hover events</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet127.java">prevent Tab from traversing out of a control</a> &ndash; <a title="Preview for Snippet 127" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet127.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet247.java">allow a multi-line text to process the default button</a> &ndash; <a title="Preview for Snippet 247" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet247.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet338.java">perform custom traversals</a> &ndash; <a title="Preview for Snippet 338" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet338.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet25.java">print key state, code and character</a> &ndash; <a title="Preview for Snippet 25" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet25.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet62.java">print mouse state and button (down, move, up)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet324.java">print mouse events (all)</a> &ndash; <a title="Preview for Snippet 324" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet324.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet214.java">set a background image (a dynamic gradient)</a> &ndash; <a title="Preview for Snippet 214" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet214.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java">set transparent background</a> &ndash; <a title="Preview for Snippet 365" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet365.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="coolbar"><b>CoolBar</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet20.java">create a cool bar</a> &ndash; <a title="Preview for Snippet 20" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet20.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet150.java">create a cool bar (relayout when resized)</a> &ndash; <a title="Preview for Snippet 150" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet150.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet140.java">drop-down a chevron menu containing hidden tool items</a> &ndash; <a title="Preview for Snippet 140" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet140.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="ctabfolder"><b>CTabFolder, CTabItem</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet82.java">prevent an item from closing</a> &ndash; <a title="Preview for Snippet 82" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet82.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet165.java">min and max buttons, close button and image only on selected tab</a> &ndash; <a title="Preview for Snippet 165" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet165.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet371.java">demonstration of a multi line CTabFolder</a> &ndash; <a title="Preview for Snippet 371" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet371.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="cursor"><b>Cursor</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet44.java">set the hand cursor into a control</a> &ndash; <a title="Preview for Snippet 44" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet44.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet92.java">create a cursor from a source and a mask</a> &ndash; <a title="Preview for Snippet 92" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet92.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet119.java">create a color cursor from a source and a mask</a> &ndash; <a title="Preview for Snippet 119" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet119.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet118.java">create a color cursor from an image file</a> &ndash; <a title="Preview for Snippet 118" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet118.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet242.java">hide the Cursor over a control</a> &ndash; <a title="Preview for Snippet 242" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet242.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="datetime"><b>DateTime</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet250.java">create a DateTime calendar and a DateTime time</a> &ndash; <a title="Preview for Snippet 250" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet250.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet251.java">create a DateTime calendar and a DateTime time in a dialog</a> &ndash; <a title="Preview for Snippet 251" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet251.png">(preview)</a></li>
       <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet370.java">DateTime with localization support</a> &ndash; <a title="Preview for Snippet 370" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet370.png">(preview)</a></li>
	</ul>
      <p></p></li>

    <li id="directorydialog"><b>DirectoryDialog</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet33.java">prompt for a directory</a></li>
      </ul>
      <p></p></li>

    <li id="display"><b>Display</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet60.java">create two one shot timers (5000 ms, 2000 ms)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet16.java">create one repeating timer (every 500 ms)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet68.java">stop a repeating timer when a button is pressed</a> &ndash; <a title="Preview for Snippet 68" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet68.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet42.java">get the bounds and client area of a display</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet7.java">fill a table from a background thread (sync exec)</a> &ndash; <a title="Preview for Snippet 7" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet7.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet142.java">post mouse events (UI testing tools only)</a> &ndash; <a title="Preview for Snippet 142" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet142.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet146.java">post key events (UI testing tools only)</a> &ndash; <a title="Preview for Snippet 146" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet146.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet304.java">post key events to simulate CTRL+END (UI testing tools only)</a> &ndash; <a title="Preview for Snippet 304" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet304.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet268.java">post mouse wheel events (UI testing tools only)</a> &ndash; <a title="Preview for Snippet 268" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet268.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet235.java">detect a system settings change</a> &ndash; <a title="Preview for Snippet 235" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet235.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet276.java">map from control-relative to display-relative coordinates</a> &ndash; <a title="Preview for Snippet 276" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet276.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet347.java">use application menu bar, if platform supports it</a> &ndash; <a title="Preview for Snippet 347" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet347.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet348.java">more complex example using application menu bar to provide better platform behavior</a> &ndash; <a title="Preview for Snippet 348" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet348.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="dnd"><b>Drag and Drop</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet78.java">drag text between two labels</a> &ndash; <a title="Preview for Snippet 78" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet78.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet91.java">drag leaf items in a tree</a> &ndash; <a title="Preview for Snippet 91" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet91.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet79.java">define my own data transfer type</a> &ndash; <a title="Preview for Snippet 79" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet79.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet171.java">define a second data transfer type that subclasses the first</a> &ndash; <a title="Preview for Snippet 171" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet171.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet84.java">define a default operation (in this example, Copy)</a> &ndash; <a title="Preview for Snippet 84" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet84.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet83.java">determine data types available (win32 only)</a> &ndash; <a title="Preview for Snippet 83" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet83.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet185.java">make a dropped data type depend on a target item in table</a> &ndash; <a title="Preview for Snippet 185" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet185.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet210.java">drag text between two StyledText widgets</a> &ndash; <a title="Preview for Snippet 210" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet210.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet257.java">drag text within a StyledText widget (with drag image)</a> &ndash; <a title="Preview for Snippet 257" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet257.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet259.java">detect drag in a custom control</a> &ndash; <a title="Preview for Snippet 259" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet259.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet284.java">drag and drop a URL</a> &ndash; <a title="Preview for Snippet 284" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet284.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet300.java">drag and drop text between SWT and Swing</a> &ndash; <a title="Preview for Snippet 300" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet300.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet319.java">drag and drop an object with a custom data transfer type from SWT to AWT/Swing</a> &ndash; <a title="Preview for Snippet 319" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet319.png">(preview)</a></li>
      </ul>
      <p></p></li>
      
    <li id="expandbar"><b>ExpandBar</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet223.java">create an expand bar</a> &ndash; <a title="Preview for Snippet 223" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet223.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet343.java">change an ExpandItem's height in response to a change in a contained Control</a> &ndash; <a title="Preview for Snippet 343" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet343.png">(preview)</a></li>
      </ul>
      <p></p></li>
      
    <li id="filedialog"><b>FileDialog</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet72.java">prompt for a file name (to save)</a></li>
      </ul>
      <p></p></li>

    <li id="font"><b>Font</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet100.java">create a large font for use by a text widget</a> &ndash; <a title="Preview for Snippet 100" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet100.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="formlayout"><b>FormLayout</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet65.java">create a simple dialog using form layout</a> &ndash; <a title="Preview for Snippet 65" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet65.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet69.java">center a label and single line text using a form layout</a> &ndash; <a title="Preview for Snippet 69" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet69.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet71.java">create a simple OK/Cancel dialog using form layout</a> &ndash; <a title="Preview for Snippet 71" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet71.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet295.java">create a simple text prompt dialog using form layout</a> &ndash; <a title="Preview for Snippet 295" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet295.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet313.java">use a form layout to hide/show a composite</a> &ndash; <a title="Preview for Snippet 313" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet313.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="gc"><b>GC</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet70.java">create an icon (in memory)</a> &ndash; <a title="Preview for Snippet 70" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet70.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet95.java">capture a widget image with a GC</a> &ndash; <a title="Preview for Snippet 95" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet95.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet280.java">draw a multi-gradient (without advanced graphics)</a> &ndash; <a title="Preview for Snippet 280" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet280.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet281.java">draw a multi-gradient</a> &ndash; <a title="Preview for Snippet 281" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet281.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet13.java">draw a thick line</a> &ndash; <a title="Preview for Snippet 13" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet13.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet168.java">draw lines with different cap and join styles</a> &ndash; <a title="Preview for Snippet 168" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet168.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet10.java">draw using transformations, paths and alpha blending</a> &ndash; <a title="Preview for Snippet 10" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet10.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet66.java">implement a simple scribble program</a> &ndash; <a title="Preview for Snippet 66" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet66.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet93.java">measure a string</a> &ndash; <a title="Preview for Snippet 93" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet93.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet207.java">reflect, shear and rotate images using matrix transformations</a> &ndash; <a title="Preview for Snippet 207" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet207.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet215.java">take a screen shot with a GC</a> &ndash; <a title="Preview for Snippet 215" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet215.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet252.java">draw 2 polylines with different line attributes</a> &ndash; <a title="Preview for Snippet 252" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet252.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="gesture"><b>Gesture, Touch support</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet352.java">create a shell and listen for TouchEvents</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet353.java">Gesture example</a></li>
      </ul>
      <p></p></li>

    <li id="gridlayout"><b>GridLayout</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet172.java">align widgets in rows and columns</a> &ndash; <a title="Preview for Snippet 172" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet172.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet6.java">insert widgets into a grid layout</a> &ndash; <a title="Preview for Snippet 6" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet6.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet266.java">span columns and center within columns</a> &ndash; <a title="Preview for Snippet 266" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet266.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet175.java">exclude an invisible widget from a grid layout</a> &ndash; <a title="Preview for Snippet 175" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet175.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet335.java">show a wrappable Label that fills available width without expanding it</a> &ndash; <a title="Preview for Snippet 335" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet335.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet342.java">grow/shrink a wrappable Text's height to show its content as it changes</a> &ndash; <a title="Preview for Snippet 342" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet342.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="image"><b>Image</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet112.java">display an image in a group</a> &ndash; <a title="Preview for Snippet 112" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet112.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet279.java">draw a reflection of an image</a> &ndash; <a title="Preview for Snippet 279" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet279.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet355.java">draw an image scaled to half size and double size</a> &ndash; <a title="Preview for Snippet 355" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet355.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet367.java">draw an image at various zoom/dpi levels</a> &ndash; <a title="Preview for Snippet 367" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet367.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="imagedata"><b>ImageData</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet141.java">display an animated GIF</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet139.java">rotate and flip an image</a> &ndash; <a title="Preview for Snippet 139" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet139.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet194.java">write an animated GIF</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet246.java">write a PNG</a></li>
      </ul>
      <p></p></li>
      
    <li id="label"><b>Label</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet34.java">create a label (with an image)</a> &ndash; <a title="Preview for Snippet 34" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet34.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet37.java">create a label (a separator)</a> &ndash; <a title="Preview for Snippet 37" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet37.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="link"><b>Link</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet182.java">create a link widget</a> &ndash; <a title="Preview for Snippet 182" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet182.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet183.java">detect selection events in a link widget</a> &ndash; <a title="Preview for Snippet 183" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet183.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="list"><b>List</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet59.java">print selected items in a list</a> &ndash; <a title="Preview for Snippet 59" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet59.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="menu"><b>Menu</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet29.java">create a bar and pull down menu (accelerators, mnemonics) </a> &ndash; <a title="Preview for Snippet 29" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet29.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet40.java">create a popup menu (set in multiple controls)</a> &ndash; <a title="Preview for Snippet 40" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet40.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet238.java">create a popup menu with a submenu</a> &ndash; <a title="Preview for Snippet 238" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet238.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet89.java">create a menu with radio items</a> &ndash; <a title="Preview for Snippet 89" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet89.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet73.java">enable menu items dynamically (when menu shown)</a> &ndash; <a title="Preview for Snippet 73" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet73.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet97.java">fill a menu dynamically (when menu shown)</a> &ndash; <a title="Preview for Snippet 97" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet97.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet131.java">show a popup menu (wait for it to close)</a> &ndash; <a title="Preview for Snippet 131" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet131.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet152.java">update a status line when an item is armed</a> &ndash; <a title="Preview for Snippet 152" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet152.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet286.java">use a menu item's armListener to update a status line</a> &ndash; <a title="Preview for Snippet 286" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet286.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="monitor"><b>Monitor</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet120.java">center a shell on the primary monitor</a></li>
      </ul>
      <p></p></li>

    <li id="ole"><b>OLE and ActiveX</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet123.java">get events from IE control</a> &ndash; <a title="Preview for Snippet 123" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet123.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet81.java">browse the typelibinfo for a program id</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet157.java">embed Word in an applet</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet186.java">reading and writing to a SAFEARRAY</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet187.java">execute a script function that exists on a web page</a> &ndash; <a title="Preview for Snippet 187" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet187.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet199.java">listen for Excel AppEvents</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet261.java">open an Excel Sheet</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet262.java">open a Word document</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet263.java">open a PowerPoint slide</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet264.java">open a Media Player</a> &ndash; <a title="Preview for Snippet 264" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet264.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet265.java">open a Windows Media Player</a> &ndash; <a title="Preview for Snippet 265" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet265.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet305.java">show selected cell position in Excel</a></li>
      </ul>
      <p></p></li>

    <li id="opengl"><b>OpenGL</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java">draw a rotating torus using the LWJGL OpenGL binding</a> &ndash; <a title="Preview for Snippet 195" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet195.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet209.java">draw a rotating torus using the JOGL OpenGL binding</a> &ndash; <a title="Preview for Snippet 209" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet209.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet174.java">draw a rectangle using the org.eclipse.opengl OpenGL binding</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet341.java">capture a LWJGL drawing to an SWT Image</a> &ndash; <a title="Preview for Snippet 341" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet341.png">(preview)</a></li>
      </ul>
      <p></p></li>
    <li id="path"><b>Path, Pattern</b>
       <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet198.java">create a path from some text</a> &ndash; <a title="Preview for Snippet 198" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet198.png">(preview)</a></li>      
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet285.java">create a circular shell from a path</a> &ndash; <a title="Preview for Snippet 285" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet285.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet200.java">fill a shape with a predefined pattern</a> &ndash; <a title="Preview for Snippet 200" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet200.png">(preview)</a></li>
       </ul>
      <p></p></li>
      
    <li id="printing"><b>Printing</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet132.java">print "Hello World!" in black, outlined in red, to default printer</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet133.java">print text to printer, with word wrap and pagination</a> &ndash; <a title="Preview for Snippet 133" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet133.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet292.java">print a control to the printer</a> &ndash; <a title="Preview for Snippet 292" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet292.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet318.java">print in landscape mode</a></li>
      </ul>
      <p></p></li>

    <li id="program"><b>Program</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet32.java">find the icon of the program that edits .bmp files</a> &ndash; <a title="Preview for Snippet 32" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet32.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet105.java">invoke an external batch file</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet30.java">invoke the system text editor on a new file</a></li>
      </ul>
      <p></p></li>

    <li id="progressbar"><b>ProgressBar</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet57.java">update a progress bar (from the UI thread)</a> &ndash; <a title="Preview for Snippet 57" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet57.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet56.java">update a progress bar (from another thread)</a> &ndash; <a title="Preview for Snippet 56" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet56.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="rowlayout"><b>RowLayout</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet176.java">align widgets in a row</a> &ndash; <a title="Preview for Snippet 176" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet176.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet177.java">align widgets in a column</a> &ndash; <a title="Preview for Snippet 177" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet177.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="sash"><b>Sash</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet54.java">create a sash (allow it to be moved)</a> &ndash; <a title="Preview for Snippet 54" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet54.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet107.java">implement a simple splitter (with a 20 pixel limit)</a> &ndash; <a title="Preview for Snippet 107" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet107.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="sashform"><b>SashForm</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet109.java">create a sash form with three children</a> &ndash; <a title="Preview for Snippet 109" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet109.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="scale"><b>Scale</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet45.java">create a scale (maximum 40, page increment 5)</a> &ndash; <a title="Preview for Snippet 45" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet45.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="scrolledcomposite"><b>ScrolledComposite</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet5.java">scroll a control in a scrolled composite</a> &ndash; <a title="Preview for Snippet 5" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet5.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet166.java">create a ScrolledComposite with wrapping content</a> &ndash; <a title="Preview for Snippet 166" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet166.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet167.java">create two ScrolledComposites that scroll in tandem</a> &ndash; <a title="Preview for Snippet 167" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet167.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet188.java">scroll a widget into view on focus in</a> &ndash; <a title="Preview for Snippet 188" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet188.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet296.java">use a ScrolledComposite to scroll a Tree vertically</a> &ndash; <a title="Preview for Snippet 296" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet296.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet322.java">use a ScrolledComposite to scroll a disabled control</a> &ndash; <a title="Preview for Snippet 322" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet322.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="shell"><b>Shell</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet50.java">create a dialog shell</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet63.java">create a dialog shell (prompt for a value)</a> &ndash; <a title="Preview for Snippet 63" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet63.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet295.java">create a dialog shell (prompt for a string)</a> &ndash; <a title="Preview for Snippet 295" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet295.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet233.java">create a dialog shell and position it</a> &ndash; <a title="Preview for Snippet 233" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet233.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet104.java">create a splash screen</a> &ndash; <a title="Preview for Snippet 104" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet104.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet99.java">prevent a shell from closing (prompt the user)</a> &ndash; <a title="Preview for Snippet 99" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet99.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet248.java">allow escape to close a shell</a> &ndash; <a title="Preview for Snippet 248" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet248.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet4.java">prevent escape from closing a dialog</a> &ndash; <a title="Preview for Snippet 4" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet4.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet27.java">open a shell minimized (iconified)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet28.java">open a shell maximized</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet134.java">create a non-rectangular window</a> &ndash; <a title="Preview for Snippet 134" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet134.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet285.java">create a circular shell from a path</a> &ndash; <a title="Preview for Snippet 285" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet285.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet138.java">set icons with different resolutions</a> &ndash; <a title="Preview for Snippet 138" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet138.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet180.java">emulate transparent shell</a> &ndash; <a title="Preview for Snippet 180" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet180.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet219.java">create a non-rectangular shell from a transparent image</a> &ndash; <a title="Preview for Snippet 219" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet219.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet314.java">use shell modified state to prompt for save</a> &ndash; <a title="Preview for Snippet 314" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet314.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="slider"><b>Slider</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet17.java">print scroll event details</a> &ndash; <a title="Preview for Snippet 17" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet17.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="spinner"><b>Spinner</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet184.java">create and initialize a spinner widget</a> &ndash; <a title="Preview for Snippet 184" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet184.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet190.java">use floats in a spinner widget</a> &ndash; <a title="Preview for Snippet 190" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet190.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet310.java">validate input in a spinner widget</a> &ndash; <a title="Preview for Snippet 310" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet310.png">(preview)</a></li>
      </ul>
      <p></p></li>
      
    <li id="stacklayout"><b>StackLayout</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet249.java">use a stack layout to switch between composites</a> &ndash; <a title="Preview for Snippet 249" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet249.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="styledtext"><b>StyledText</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet163.java">change font style, foreground and background colors of StyledText</a> &ndash; <a title="Preview for Snippet 163" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet163.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet244.java">draw a box around text</a> &ndash; <a title="Preview for Snippet 244" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet244.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet189.java">underline and strike through text</a> &ndash; <a title="Preview for Snippet 189" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet189.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet211.java">use rise and font with StyleRange</a> &ndash; <a title="Preview for Snippet 211" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet211.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet212.java">embed images in StyledText</a> &ndash; <a title="Preview for Snippet 212" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet212.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet213.java">use indent, alignment and justify</a> &ndash; <a title="Preview for Snippet 213" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet213.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet217.java">embed controls in StyledText</a> &ndash; <a title="Preview for Snippet 217" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet217.png">(preview)</a></li>        
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet222.java">use bulleted lists in StyledText</a> &ndash; <a title="Preview for Snippet 222" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet222.png">(preview)</a></li>        
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet218.java">use gradient background in StyledText</a> &ndash; <a title="Preview for Snippet 218" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet218.png">(preview)</a></li>        
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet325.java">variable tab stops in StyledText</a> &ndash; <a title="Preview for Snippet 325" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet325.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet328.java">per line variable tab stops in StyledText</a> &ndash; <a title="Preview for Snippet 328" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet328.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet331.java">different types of indent and combining wrap indent and bulleted lists</a> &ndash; <a title="Preview for Snippet 331" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet331.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet332.java">using BidiSegmentEvent#segmentsChars to implement custom bidi segments</a> &ndash; <a title="Preview for Snippet 332" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet332.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet356.java">embed an inline link in StyledText</a> &ndash; <a title="Preview for Snippet 356" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet356.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet368.java">line spacing provider in StyledText</a> &ndash; <a title="Preview for Snippet 368" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet368.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet369.java">dynamically customize line spacing provider in StyledText</a> &ndash; <a title="Preview for Snippet 369" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet369.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet377.java">ligatures support added in StyledText</a> &ndash; <a title="Preview for Snippet 377" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet377.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="awt"><b>Swing/AWT</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet135.java">embed Swing/AWT in SWT</a> &ndash; <a title="Preview for Snippet 135" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet135.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet154.java">embed a JTable in SWT (no flickering)</a> &ndash; <a title="Preview for Snippet 154" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet154.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet155.java">draw an X using AWT Graphics</a> &ndash; <a title="Preview for Snippet 155" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet155.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet156.java">convert between SWT Image and AWT BufferedImage</a> &ndash; <a title="Preview for Snippet 156" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet156.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet337.java">launch SWT from AWT and keep both active</a> &ndash; <a title="Preview for Snippet 337" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet337.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet319.java">drag and drop an object with a custom data transfer type from SWT to AWT/Swing</a> &ndash; <a title="Preview for Snippet 319" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet319.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java">use Java2D to modify an image being displayed in an SWT GUI</a> &ndash; <a title="Preview for Snippet 361" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet361.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="tabfolder"><b>TabFolder, TabItem</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet76.java">create a tab folder (six pages)</a> &ndash; <a title="Preview for Snippet 76" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet76.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="table"><b>Table, TableItem, TableColumn</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet151.java">add 1000 sorted entries to a virtual table every 500 ms</a> &ndash; <a title="Preview for Snippet 151" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet151.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet129.java">color cells and rows in table</a> &ndash; <a title="Preview for Snippet 129" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet129.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet35.java">create a table (no columns, no headers)</a> &ndash; <a title="Preview for Snippet 35" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet35.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet38.java">create a table (columns, headers, lines)</a> &ndash; <a title="Preview for Snippet 38" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet38.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet297.java">create a table with column header images</a> &ndash; <a title="Preview for Snippet 297" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet297.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet144.java">create a table with 1,000,000 items (lazy)</a> &ndash; <a title="Preview for Snippet 144" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet144.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet201.java">create a table with 1,000,000 items (lazy, page size 64)</a> &ndash; <a title="Preview for Snippet 201" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet201.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet7.java">create a table (lazy with a thread)</a> &ndash; <a title="Preview for Snippet 7" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet7.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet301.java">create a table with no scroll bars</a> &ndash; <a title="Preview for Snippet 301" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet301.png">(preview)</a>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet113.java">detect a selection or check event in a table (SWT.CHECK)</a> &ndash; <a title="Preview for Snippet 113" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet113.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet3.java">find a table cell from mouse down (SWT.FULL_SELECTION)</a> &ndash; <a title="Preview for Snippet 3" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet3.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet110.java">find a table cell from mouse down (works for any table style)</a> &ndash; <a title="Preview for Snippet 110" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet110.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet101.java">insert a table item (at an index)</a> &ndash; <a title="Preview for Snippet 101" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet101.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet106.java">insert a table column (at an index)</a> &ndash; <a title="Preview for Snippet 106" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet106.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet181.java">allow user to reorder columns by dragging or programmatically</a> &ndash; <a title="Preview for Snippet 181" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet181.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet126.java">place arbitrary controls in a table</a> &ndash; <a title="Preview for Snippet 126" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet126.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet64.java">print selected items in a table</a> &ndash; <a title="Preview for Snippet 64" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet64.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet53.java">remove selected items</a> &ndash; <a title="Preview for Snippet 53" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet53.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet77.java">resize columns as table resizes</a> &ndash; <a title="Preview for Snippet 77" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet77.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet51.java">scroll a table one "page" at a time (set the top index)</a> &ndash; <a title="Preview for Snippet 51" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet51.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet52.java">select an index (select and scroll)</a> &ndash; <a title="Preview for Snippet 52" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet52.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet2.java">sort a table by column</a> &ndash; <a title="Preview for Snippet 2" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet2.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet192.java">sort a table by column (virtual table, sort indicator)</a> &ndash; <a title="Preview for Snippet 192" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet192.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet103.java">update table item text</a> &ndash; <a title="Preview for Snippet 103" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet103.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet349.java">show a table with images of various sizes</a> &ndash; <a title="Preview for Snippet 349" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet349.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet230.java">draw images on right side of table item</a> &ndash; <a title="Preview for Snippet 230" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet230.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet228.java">show results as a bar chart in table</a> &ndash; <a title="Preview for Snippet 228" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet228.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet229.java">draw a custom gradient selection for table</a> &ndash; <a title="Preview for Snippet 229" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet229.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet231.java">draw multiple lines in a table item</a> &ndash; <a title="Preview for Snippet 231" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet231.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet234.java">fixed first column horizontal scroll remaining columns</a> &ndash; <a title="Preview for Snippet 234" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet234.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet236.java">draw different foreground colors for text in a TableItem</a> &ndash; <a title="Preview for Snippet 236" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet236.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet239.java">make text span multiple columns</a> &ndash; <a title="Preview for Snippet 239" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet239.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet253.java">compute the number of visible rows in a table</a> &ndash; <a title="Preview for Snippet 253" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet253.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet271.java">specify custom content dimensions in a table with no columns</a> &ndash; <a title="Preview for Snippet 271" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet271.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet272.java">specify custom content widths when a column is packed</a> &ndash; <a title="Preview for Snippet 272" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet272.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet273.java">modify the clipping of custom background paints</a> &ndash; <a title="Preview for Snippet 273" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet273.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet311.java">show a menu in a table header</a> &ndash; <a title="Preview for Snippet 311" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet311.png">(preview)</a></li>
		<!-- <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet283.java">draw left aligned icon, text and selection</a> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/eclipse.png">(eclipse.png)</a></li> -->
      </ul>
      <p></p></li>

    <li id="tablecursor"><b>TableCursor</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet96.java">navigate a Table's cells with the arrow keys</a> &ndash; <a title="Preview for Snippet 96" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet96.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="tableeditor"><b>TableEditor</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet88.java">edit the text of a table item (in place)</a> &ndash; <a title="Preview for Snippet 88" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet88.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet124.java">edit a cell in a table (in place, fancy)</a> &ndash; <a title="Preview for Snippet 124" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet124.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet149.java">place a progress bar in a table</a> &ndash; <a title="Preview for Snippet 149" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet149.png">(preview)</a></li>
      </ul>
      <p></p></li>
      
    <li id="taskbar"><b>TaskBar, TaskBarItem</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet336.java">customize the taskbar item with progress indicator, overlay image, and overlay text</a> &ndash; <a title="Preview for Snippet 336" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet336.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="text"><b>Text</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet117.java">add a select all menu item to the control</a> &ndash; <a title="Preview for Snippet 117" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet117.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet24.java">detect CR in a text control (default selection)</a> &ndash; <a title="Preview for Snippet 24" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet24.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet241.java">override Tab behavior to traverse out of a text control</a> &ndash; <a title="Preview for Snippet 241" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet241.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet116.java">prevent CR from going to the default button</a> &ndash; <a title="Preview for Snippet 116" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet116.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet121.java">prompt for a password (set the echo character)</a> &ndash; <a title="Preview for Snippet 121" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet121.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet55.java">resize a text control (show about 10 characters)</a> &ndash; <a title="Preview for Snippet 55" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet55.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet22.java">select all the text in the control</a> &ndash; <a title="Preview for Snippet 22" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet22.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet11.java">set the selection (i-beam)</a> &ndash; <a title="Preview for Snippet 11" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet11.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet12.java">set the selection (start, end)</a> &ndash; <a title="Preview for Snippet 12" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet12.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet19.java">verify input (only allow digits)</a> &ndash; <a title="Preview for Snippet 19" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet19.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet179.java">verify input in a template (YYYY/MM/DD)</a> &ndash; <a title="Preview for Snippet 179" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet179.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet191.java">detect when the user scrolls a text control</a> &ndash; <a title="Preview for Snippet 191" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet191.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet196.java">verify input using a regular expression</a> &ndash; <a title="Preview for Snippet 196" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet196.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet243.java">type in one text control, output to another</a> &ndash; <a title="Preview for Snippet 243" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet243.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet258.java">create a search text control</a> &ndash; <a title="Preview for Snippet 258" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet258.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet309.java">display different styles of the search Text control</a> &ndash; <a title="Preview for Snippet 309" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet309.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet320.java">implement content assist</a> &ndash; <a title="Preview for Snippet 320" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet320.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet346.java">set contents of a password field using a char array instead of a String</a> &ndash; <a title="Preview for Snippet 346" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet346.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="textlayout"><b>TextLayout, TextStyle</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet145.java">draw internationalized styled text on a shell</a> &ndash; <a title="Preview for Snippet 145" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet145.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet197.java">draw dynamically wrapped text on a shell</a> &ndash; <a title="Preview for Snippet 197" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet197.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet203.java">justify, align and indent text</a> &ndash; <a title="Preview for Snippet 203" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet203.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet204.java">change the rise of text relative to the baseline</a> &ndash; <a title="Preview for Snippet 204" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet204.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet205.java">embed images and widgets in text</a> &ndash; <a title="Preview for Snippet 205" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet205.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet256.java">underline and strike through text</a> &ndash; <a title="Preview for Snippet 256" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet256.png">(preview)</a></li>
       </ul>
      <p></p></li>

    <li id="toolbar"><b>ToolBar, ToolItem</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet18.java">create a tool bar (text)</a> &ndash; <a title="Preview for Snippet 18" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet18.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet36.java">create a flat tool bar (images)</a> &ndash; <a title="Preview for Snippet 36" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet36.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet47.java">create tool bar (normal, hot and disabled images)</a> &ndash; <a title="Preview for Snippet 47" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet47.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet49.java">create tool bar (wrap on resize)</a> &ndash; <a title="Preview for Snippet 49" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet49.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet58.java">place a combo box in a tool bar</a> &ndash; <a title="Preview for Snippet 58" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet58.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet67.java">place a drop down menu in a tool bar</a> &ndash; <a title="Preview for Snippet 67" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet67.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet153.java">update a status line when the mouse enters a tool item</a> &ndash; <a title="Preview for Snippet 153" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet153.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet288.java">create a tool bar containing animated gifs</a> &ndash; <a title="Preview for Snippet 288" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet288.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="tooltips"><b>Tool Tips</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet41.java">create tool tips for a tab folder, tool bar and control</a> &ndash; <a title="Preview for Snippet 41" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet41.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet125.java">create emulated tool tips for items in a table</a> &ndash; <a title="Preview for Snippet 125" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet125.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet225.java">create a balloon tooltip for a tray item</a> &ndash; <a title="Preview for Snippet 225" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet225.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet278.java">show a tool tip iff it's not fully visible</a> &ndash; <a title="Preview for Snippet 278" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet278.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet216.java">show a tool tip inside a rectangle</a> &ndash; <a title="Preview for Snippet 216" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet216.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="tracker"><b>Tracker</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet23.java">create a tracker (drag on mouse down)</a> &ndash; <a title="Preview for Snippet 23" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet23.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet31.java">create a tracker (drag when "torn off")</a></li>
      </ul>
      <p></p></li>

    <li id="tray"><b>Tray, TrayItem</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet143.java">place a popup menu on the system tray</a> &ndash; <a title="Preview for Snippet 143" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet143.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="tree"><b>Tree, TreeItem, TreeColumn</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet15.java">create a tree</a> &ndash; <a title="Preview for Snippet 15" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet15.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet8.java">create a tree (lazy)</a> &ndash; <a title="Preview for Snippet 8" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet8.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet202.java">create a virtual tree (lazy)</a> &ndash; <a title="Preview for Snippet 202" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet202.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet302.java">create a tree with no scroll bars</a> &ndash; <a title="Preview for Snippet 302" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet302.png">(preview)</a>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet114.java">detect a selection or check event in a tree (SWT.CHECK)</a> &ndash; <a title="Preview for Snippet 114" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet114.png">(preview)</a></li>          
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet274.java">implement standard tree check box behavior (SWT.CHECK)</a> &ndash; <a title="Preview for Snippet 274" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet274.png">(preview)</a>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet102.java">insert a tree item (at an index)</a> &ndash; <a title="Preview for Snippet 102" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet102.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet61.java">print selected items in a tree</a> &ndash; <a title="Preview for Snippet 61" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet61.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet80.java">limit selection to items that match a pattern</a> &ndash; <a title="Preview for Snippet 80" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet80.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet90.java">detect mouse down in a tree item</a> &ndash; <a title="Preview for Snippet 90" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet90.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet170.java">create a tree with columns</a> &ndash; <a title="Preview for Snippet 170" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet170.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet193.java">make columns reorderable by dragging</a> &ndash; <a title="Preview for Snippet 193" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet193.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet220.java">images on right side of TreeItem</a> &ndash; <a title="Preview for Snippet 220" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet220.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet232.java">show results as a bar chart in tree</a> &ndash; <a title="Preview for Snippet 232" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet232.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet226.java">draw a custom gradient selection for tree</a> &ndash; <a title="Preview for Snippet 226" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet226.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet227.java">draw multiple lines in a tree item</a> &ndash; <a title="Preview for Snippet 227" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet227.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet221.java">scroll tree when mouse at top or bottom</a> &ndash; <a title="Preview for Snippet 221" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet221.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet287.java">search for a string in a tree (recursively)</a> &ndash; <a title="Preview for Snippet 287" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet287.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet254.java">compute the number of visible rows in a tree</a> &ndash; <a title="Preview for Snippet 254" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet254.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet312.java">show a menu in a tree header</a> &ndash; <a title="Preview for Snippet 312" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet312.png">(preview)</a></li>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet358.java">determine which TreeItems are visible in a Tree's viewport</a> &ndash; <a title="Preview for Snippet 358" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet358.png">(preview)</a></li>
        <!-- <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet240.java">text that spans multiple columns</a></li> -->
      </ul>
      <p></p></li>

    <li id="treecursor"><b>TreeCursor</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet360.java">navigate a Tree's cells with the arrow keys</a> &ndash; <a title="Preview for Snippet 360" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet360.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li id="treeeditor"><b>TreeEditor</b>
      <ul>
        <li> <a href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet111.java">edit the text of a tree item (in place, fancy)</a> &ndash; <a title="Preview for Snippet 111" href="https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/previews/Snippet111.png">(preview)</a></li>
      </ul>
      <p></p></li>

    <li>... and lots more still to come. Keep checking back.
  </ul>
</div>
<?php 
$html = ob_get_clean();

# Generate the web page
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>

Back to the top