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 257440 Details for
Bug 480335
[GTK3] Spinner created with SWT.READ_ONLY flag isn't updatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
A snippet
Snippet184a.java (text/x-java-source), 1.49 KB, created by
Snjezana Peco
on 2015-10-22 09:29:14 EDT
(
hide
)
Description:
A snippet
Filename:
MIME Type:
Creator:
Snjezana Peco
Created:
2015-10-22 09:29:14 EDT
Size:
1.49 KB
patch
obsolete
>/******************************************************************************* > * Copyright (c) 2000, 2005 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at > * http://www.eclipse.org/legal/epl-v10.html > * > * Contributors: > * IBM Corporation - initial API and implementation > *******************************************************************************/ >package org.eclipse.swt.snippets; > >/* > * Spinner example snippet: create and initialize a spinner widget > * > * For a list of all SWT example snippets see > * http://www.eclipse.org/swt/snippets/ > * > * @since 3.1 > */ >import org.eclipse.swt.*; >import org.eclipse.swt.graphics.Rectangle; >import org.eclipse.swt.widgets.*; > >public class Snippet184 { > > public static void main(String[] args) { > Display display = new Display(); > Shell shell = new Shell(display); > Spinner spinner = new Spinner (shell, SWT.READ_ONLY|SWT.BORDER); > spinner.setMinimum(0); > spinner.setMaximum(1000); > spinner.setSelection(500); > spinner.setIncrement(1); > spinner.setPageIncrement(100); > Rectangle clientArea = shell.getClientArea(); > spinner.setLocation(clientArea.x, clientArea.y); > spinner.pack(); > shell.pack(); > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) > display.sleep(); > } > display.dispose(); > } >}
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 480335
: 257440