Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 271920 Details for
Bug 528819
[GTK3] StyledText draws carets if unfocused
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Sample code
StyledTextCarets.java (text/plain), 842 bytes, created by
Thomas Singer
on 2017-12-15 04:30:54 EST
(
hide
)
Description:
Sample code
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2017-12-15 04:30:54 EST
Size:
842 bytes
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.custom.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >public class StyledTextCarets { > > public static void main(String[] args) { > final Display display = new Display(); > > final Shell shell = new Shell(display); > shell.setLayout(new FillLayout()); > > final Text text = new Text(shell, SWT.MULTI | SWT.WRAP); > text.setText("Resize the shell and what for the styled text controls that paint carets."); > createStyledText(shell); > createStyledText(shell); > > shell.setSize(500, 400); > shell.open(); > > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > > display.dispose(); > } > > private static void createStyledText(Shell shell) { > final StyledText st = new StyledText(shell, SWT.BORDER); > st.setEditable(false); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 528819
: 271920 |
271921
|
271922