spinner

Is there a convenient way to use a spinner as an editor in a Swing JTable?

I deal with numeric data that is often edited up or down by 0.01*Value_of_variable, so a spinner looks like a good choice compared to a usual text cell. I've looked at DefaultCellEditor but it will only take text fields, combo boxes or check boxes. Is there a convenient way to use a spinner? ...

Android and storing/loading preferences for resources - how to achieve consistency?

I'm writing an application and need some help with consistently storing and loading preferences related to certain resources. Let me give an example. Suppose I have 10 spinners. They all have the same functionality but different meaning. Because they have the same functionality, I can bind them to the same onItemSelectedListener, which ...

Android Spinner - How to remove radio buttons?

In Android 1.6, upon tapping a spinner (drop-down menu), radio buttons appear next to the spinner options. How do I remove those radio buttons so that just the option text remains? ...

Android Spinner - How to make dropdown view transparent?

I have a custom spinner dropdown xml file in /res/layout/: spinner_view_dropdown.xml: <?xml version="1.0" encoding="UTF-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/spinner_item_dropdown" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:col...

Android Dropdown Effect - Spinner or not?

Achieving a true "dropdown" effect (as seen in Adobe's Photoshop Mobile app for Android, image below) has proven challenging using Androids built-in methods. As others on Stackoverflow have told me, editing the style of a dropdown list view of an Android spinner is limiting. How is this dropdown effect done? (I can't seem to get an ...

How to get Spinner value?

Is it be possible in the Android Hello, Spinner example to get the selected Spinner value with a listener, like for the other examples -- or do you need to subclass Spinner? ...

How to prevent GWT onload flicker in the Web Application Starter Project?

I'm new to GWT, and I'm sure this is answered in SO somewhere but I've yet to find I downloaded the GWT 2.0 eclipse plugin, and was pleased to see it comes with a starter project. However, I was surprised that when running it, there is an unpleasent flickering... The text loads without the CSS first It takes a while untill the select...

is there a way to dynamically put a spinner next to a control instead of having divs all over the place

i have a number of dropdown controls and on the change event it kicks off ajax getJSON() calls. I have a div next to each dropdown with a spinner image as i want to display "loading . . " as some of the ajax calls are expensive. Is there anyway i can just have one spinner div on the page and have the spinner move right next to the drop...

Increment value of textinput with jquery like spinner

Hi folks Trying to create a simple spinner effect with Jquery, i.e. two buttons (up & down) with a text field. The upbutton increases the value while the down button decreses the value. increment steps + or - 1. Any suggestions as ui.spinner is most def. not working and I am new to jquery. musty be something like $(#up).click (funct...

jQuery spinner type thing

I'm trying to create a jQuery spinner type thing earlier today somebody gave me this code which increases the text field value up/down on button clicks. Fantastic. But what do you do to disable the .desc button if the value is 0 - zero. In PHP very easy if if <=0 then this etc... but I don't know jQuery.. Also any ideas how it can be u...

Using a Spinner with a SimpleCursorAdapter

I have an activity which has a Spinner widget to display categories. Initially I was using an ArrayAdapter to populate the the spinner as in the following code private static final String[] arrayCategories = { "Business", "Personal" }; mCatSpinner = (Spinner) findViewById(R.id.thecategory); ArrayAdapter<String> catAdapter = new Ar...

android.database.sqlite.SQLiteCursor@435b9ba0

I am getting the text 'android.database.sqlite.SQLiteCursor@435b9ba0' returned from a spinner.getSelectedItem().toString() call. I'm not sure why. The spinner is tied to a SimpleCursorAdapter. Here is the code cCategories = (Cursor) myAdapter.getAllCategories(); this.startManagingCursor(cCategories); SimpleCursorAdapte...

How to popup list like a spinner without spinner in android?

I have a spinner widget in my activity which lets users pick a list name. Normally, the function of the spinner is to switch between lists but for a couple of instances, I swap out the selection change listener to perform a different function with the same list of options. Once the selection has been made, the old listener is restored ...

Call a spinner's value? Also, use other values based on a spinner's value

I have a spinner 'aperture' set up with a list of numbers, and a spinner 'mode' with two options. When a button is pushed I need a calculation to run using various inputs, including the current selection from 'aperture' and a value derived from 'mode'. How do I call the value of a spinner so I can use it in a calculation? Also, how do I...

App crashes when calling Spinner value in calculation?

import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.EditText; import android.widget.Spinner; import android.widget.SpinnerAdapter; import android.widget.Text...

How to display particular array of items from a database (SQLServer) in a Spinner of Android?

How to display particular array of items from a database (Mysql) in a Spinner of Android? ...

Populating Spinner From SQLite Database Android

I'm attempting to make a dynamic drop down that will be filled by a SQLite table. I have a Cursor object which I can pull the data I need from. I've been able to accomplish loading the values into the drop down with the code below: Spinner s = (Spinner) findViewById(R.id.spinner); ArrayAdapter adapter = new ArrayAdapter<String>(th...

When do browsers start to render partially transmitted HTML?

I have a long-running report and want to show a wait-spinner to the user while it's generating. I have made this work already but am not sure I'm doing it the best or right way. This is using ColdFusion but it could be any language I guess. At the top of the page, I have some Javascript (jQuery) that shows a wait-spinner plus there's a ...

Image+TextView+radiobutton in spinner

First, I want to imitate the effect like "android.R.layout.simple_spinner_dropdown_item" which is TextView+radiobutton but either the getView() or getDropDownView only cares about one row at a time, while the whole radiobuttons in spinner is like one RadioGroup, and when dropdown view is opened, the radiobutton with which item is selec...

jQuery UI - Plugin for inputting a number as hex?

On a recent project, I need have a hex mask (0x0 - 0xFF) as one of the input fields on an HTML form. I know I could just use a regular input to get the hex value, and then I can validate it along with the other form submission validation. However, for some of the other decimal fields I am using ui.spinner.js (github) to allow the user ...