Textfield/combobox with popup list
I would like to make a textfield/combobox with the a poplist on the bottom. When a user types, it shows a list of string that match the string on the textfield. Just like the search textfield in this web site. Do you guys have any idea? Where I should start? What model that I should overallwrite?
Thank you so much.
Look through some of these
http://search.java.sun.com/Search/java?qt=%2Bjcombobox+%2B%28search%2C+autocomplete%2C+autoselect%29+%2Btype&col=javafrm&rf=0
Similar Messages
-
Tabular Form with Popup List Error
hi,
am using javascript to display Department Name when Deptno is changed in the Popup List
am getting message from Popup Item (DEPTNO) (Htlm Form Element Attributes -> onchange="getDname(this); ")
but am not getting message from popup Item in the Tabular Form ,
am calling same javascript funtion in both the Popup Item(Column Attributes/Element Attributes->onchange="getDname(this); ")
but am getting message from LOV item in the tabular form, am calling same function (Column Attributes/Element Attributes->onchange="getDname(this); ")
u can check from the following URL:-
http://apex.oracle.com/pls/apex/f?p=17935:12
Username/Password : test/test
Is there an setting i need to change in Popup Item in Tabular Form?Still nobody knows what the bug in Tabular Form
CAN ANY ONE HELP ME ? -
Populating a ComboBox with names of all Cue Points
I'm working with Flash CS4 and ActionScript 3. I have a .flv file with about 30 cue points created in Soundbooth. When I run my video my listener picks up the cue points as expected. What I am trying to do now is populate a combobox with a list of all the cue points in the .flv file. Seems like it should be a super easy task to access an array of all the cue points in the .flv - but so far no luck.
I am using FLVPlayback to run my video.
Appreciate any advice as to how to access a list of all cue points. Thanks.Got it!
For anyone else looking, here it is:
// this assumes you have a copy of FLVPlayBack downloaded to and instanced as my_FLVPlybk
import fl.video.*;
my_FLVPlybk.addEventListener(MetadataEvent.METADATA_RECEIVED,
handleMetadata);
function handleMetadata(e:MetadataEvent):void {
var data:Object = e.info;
recurseTrace(data, "");
function recurseTrace(info:Object, indent:String):void
for (var i:* in info) {
if (typeof info[i] == "object") {
trace(indent + i + ":");
recurseTrace(info[i], indent + " ");
} else {
trace(indent + i + " : " + info[i]); -
I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' i--t won't go away-'delete' is greyed out--can't access calendar! Help!
I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' i--t won't go away-'delete' is greyed out--can't access calendar! Help!
-
ComboBox with Lovs on Jdev 11g r2
I'm facing this Error on JSF on Jdeveloper 11g r2, Windows7.
I'm Using a ComboBox with Lovs on af:table.
I'm getting this Error below when I invoke the (Search) option... to see the popup list.
it works fine in every other case, if I select from the small list works ok, enter the text works ok. everything but the search option.
thank you for any help.
JBO-29114 ADFContext is not setup to process message for this exception.
Use the exception stack trace and error code to ivestigate the root cause
of this exception. Root cause error code is JBO-29000.
<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=Cannot invoke method minus() on null object
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1218)
at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1253)
at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1075)
at oracle.jbo.server.ViewObjectImpl.createViewAccessorRS(ViewObjectImpl.java:16203)I'm not Using a custom seach.....
I just define my LOV using a Model Driven List. and select Option ComboBox with Lovs.....
the lov with the issue belong to a detail table. I got several ComboBoxes working fine in similar model.... master/detail and the lov in the detail table.
thank you -
Eliminating the null values from popup list item
Dear All,
i create a popup list,at runtime it shows a null blank value among the values i specified while the combo box is not,
i want to eleminate the blank null value from the popup list.
Need Help.
Thanks & Regards.Okay,
i create a popup list, populate it in runtime with create_group_from_query builtin.
now when i run the form and click the list item, it display a null value among the other values which are
return from the create_group_from_query .
the procedure is below
procedure Department_proc is
rg recordgroup;
n number;
begin
remove_record_group('RG');------ this is another procedure which checks for Record group existance and remove it.
rg=:=create_group_from_query('RG4','SELECT NAME,TO_CHAR(DEPT_ID) FROM TAB_DEPT_SECTION
UNION
SELECT '||'''All Departments'''||'as name,'||'''0'''||' as name from dual');
n:=populate_group(rg4);
populate_list('control_block.department',rg4);
end;
it display a null value among the other values for the first time is run the form,but when i click it and select a value from it
and the onward click dont show the null value.i want to eleminate the null value even for the first time when the user run the
from.
Best Regards -
JComboBox popup list remains open after losing keyboard focus
Hi,
I have noticed a strange JComboBox behavior. When you click on the drop down arrow to show the popup list, and then press the Tab key, the keyboard focus moves to the next focusable component, but the popup list remains visible.
I have included a program that demonstrates the behavior. Run the program, click the drop down arrow, then press the Tab key. The cursor will move into the JTextField but the combo box's popup list is still visible.
Does anyone know how I can change this???
Thanks for any help or ideas.
--Yeath
import java.awt.*;
import javax.swing.*;
import java.util.*;
public class Test extends JFrame
public Test()
super( "Test Application" );
this.getContentPane().setLayout( new BorderLayout() );
Box box = Box.createHorizontalBox();
this.getContentPane().add( box, BorderLayout.CENTER );
Vector<String> vector = new Vector<String>();
vector.add( "Item" );
vector.add( "Another Item" );
vector.add( "Yet Another Item" );
JComboBox jcb = new JComboBox( vector );
jcb.setEditable( true );
JTextField jtf = new JTextField( 10 );
box.add( jcb );
box.add( jtf );
public static void main( String[] args )
Test test = new Test();
test.pack();
test.setVisible( true );
test.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
}ran your code on 1.5.0_3, observed problem as stated.
even though the cursor is merrily blinking in the textfield, you have to click into
the textfield to dispose the dropdown
ran your code on 1.4.2_08, no problems at all - tabbing into textfield immediately
disposed the dropdown
another example of 'usual' behaviour (involving focus) breaking between 1.4 and 1.5
the problem is that any workaround now, may itself be broken in future versions -
How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
I currently run OS X 10.10.1
Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
Here is an example of what i want to happen.
I will have 2 tabs: Contact | Sales
Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
Now how do i do this, Excel can do this so how can numbers do it?Hi Shegra,
Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
quinn
Script starts:
-- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
property DataEntryTable : "Sales" --name of table with popups to be refreshed
set copyRange to {}
property PopValueSheet : "Sheet 1" --name of sheet with popup values table
property PopValueTable : "Contacts" --name of table with popup values
set PopStartRow to {}
tell application "Numbers"
set d to front document
set ps to d's sheet PopValueSheet
set pt to ps's table PopValueTable
set s to d's sheet DataEntrySheet
set t to s's table DataEntryTable
set tf to t's filtered --this records filter setting on data Entry Table
display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
set PopStartRow to {text returned of result}
tell pt --convert list to alphabetized popups
set ptRows to count rows
set copyRange to ("A2:" & name of cell ptRows of column "A")
set selection range to range copyRange
set selection range's format to text
sort by column 1 direction ascending
set selection range's format to pop up menu
-- popupsmade
set selection range to cell ptRows of column 1 of pt
set v to value of cell ptRows of pt
end tell
activate application "Numbers"
tell application "System Events" to keystroke "c" using command down
tell pt
set selection range to range copyRange
set selection range's format to text
end tell
tell t
set filtered to false
set tRows to count rows
set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
set selection range to range pasteRange
tell application "System Events" to keystroke "v" using command down
set filtered to tf
end tell
end tell -
Custom itemRenderer in a F3 ComboBox on specific list items after combobox creation
Hi,
I'm trying to set a specific list item in a mx combobox to have a custom item renderer, the problem is that I cannot do this via mxml, it needs to be done via actionscript at a later stage, eg: combobox gets created, combobox gets populated, user does other tasks, combobox needs to set one or more items in the combobox to have icons (via item renderer)..
I can do this via the onChange event, but it only applies the icon when the combobox is opened and there is a slight delay so you can see the icon being added.
Thanks in advance for any help
JHi,
If I understand correctly, you can create you comboBox with all items at the begining:
http://blog.flexexamples.com/2007/08/18/displaying-icons-in-a-flex-combobox-control/
After that, base on user task, you can filter you comboBox:
http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-items-in-a-datagrid-in- flex/
In this way you don't see the delay.
Johnny
Please rate answers. -
How to delete empty element in popup list
I have a question about a suspicious behaviour in Forms Builder 10.1.2.0.2.
When I have a list object (pop up list) I can define some values in the attribute palette of the object.
So you can set a shown name and a value behind. In this little window to set the items of the popup list you get automatically a white empty item at the end of the list. When I click now on this empty item (you do so, when you want to add an item) Forms Builder automatically adds an new empty item at the end.
When I click this new empty item, Forms Builder adss another empty one ... and so on.
It´s very suspicious because, when I end this dialog with "OK", it will be saved and when I open the form (over web) I have at the end of the list one, two (or more) empty elements in list.
But I can´t delete this empty ones from the list in Forms Builder.
So my question:
how can I delete empty items in a popup list??
I try it with hit "del" button at keyboard or delete the set value for the item (I hope Forms Builder delete items without value). But all does not help.Thanks jwh for this great solution! :)
On my german keyboard it is:
ctrl+< for deleting a line
ctrl+> (= ctrl+shift+<) for adding a new line
Thanks! :)
I have another question (you can maybe help me, too?).
On this popup lists you can have several items. When you open a form (via web) and the list has more than x items (maybe 5 or 6) the form shows a scroll bar on the right side.
Is there any poosibility to set how much items has to show and only show a scroll bar when there are more items in the list?
Or other way: set the maximum of shown items so big, that there will be no scroll bar.
Message was edited by:
ulfk -
How can I show tree's nodes in a Popup List of values
I have a tree and in a different form for an item I want to write nodes together for example
computer/desktop/asus/....
computer/pda/hp/... this must be shown in a popup list of values can you help?
thanksSimon's suggestion sounds good - Connect By Prior sounds like what you want. Assuming you have a parent/child relationship in your data, you could use SQL like the following for the source of your Popup LOV (this will deal with a hierarchy of any number of levels):
SELECT SYS_CONNECT_BY_PATH(person_name, '/') d, person_id r
FROM persons
START with parent_id = 0
connect by prior id = parent_id
You will need to adapt the above to fit in with the structure of your table. The above assumes a PERSONS table with 3 columns: person_id | person_name | parent_id. It will output something like:
John
John/Adam
John/Adam/Julie
John/Adam/Steven
John/Adam/Steven/Wally
John/Bob
John/Karen
Hope that helps,
Andy -
JComboBox fails to popup list - mouse/keyboard coordinate problem?
Have discovered the following phenomenon:
my JComboBox is placed in a hierarchy of panels, the top of which
is packaged via sun.beans.ole.Packager as ActiveX. THe ActiveX'ed
bean is used in an MFC application, which uses the plugin as VM.
The JComboBox failed to popup its selection list when the user
clicked on the popup button or used the appropriate key combination.
I found out, that if the application is resized/moved so that the JComboBox
is not in the upper left quarter of the screen, then it can display its popup list
without problem. Have not investigated on whether the "upper left" corner
also means "including popup bounds", but it seems like it.
Happens only in the plugin, not within regular Java application.
Anyone out there with a similar problem? Or better, a solution?
Have cross-posted to the Plugin group.
And, of course, I am desperate for a solution! (Project release date lurking...)
SylviaNubz,
actually I'm still using a standard wired apple keyboard, wt the magic mouse, because the wire goes under my desk, and I was actually considering getting a trackpad. Still since my Yosemite upgrade, I'm having problem after problem, so I'm not sure I will even stay wt Mac. Honestly I've examined any and all solutions, in that support article, but none of them were relevant to my problem.
I did check & repair my Yosemite Disk Permissions using Disk Utility, and although it found only a few things wrong, and none were related to my keyboard, or mouse (most were for my HP printer), repairs seemed to rectify the problem. -
Combobox with LOV showing ID but would like to display more meaningful text
Hi, I'm experimenting with JDeveloper 11.2.
I have a base table/eo with an FK ID to another table/eo which is a lookup table.
On the base tables view I have created a combobox with LOV but it is showing the ID and I'd like it to show the name from the lookup table.
So rather than showing the ID 1 I'd like it to show James instead.
I can just about remember being able to do this in Oracle Designer.
I know this is something stupid but I've searched Google and not come up with anything.
CREATE TABLE ACCOUNTS
ACCOUNT_ID NUMBER NOT NULL,
ACCOUNT_LOGIN VARCHAR2(30 CHAR) NOT NULL,
FIRST_NAME VARCHAR2(50 CHAR) NOT NULL,
LAST_NAME VARCHAR2(50 CHAR) NOT NULL,
EMAIL VARCHAR2(150 CHAR),
CREATED_TIMESTAMP TIMESTAMP(6) WITH LOCAL TIME ZONE DEFAULT SYSTIMESTAMP NOT NULL
ALTER TABLE ACCOUNTS ADD (
CONSTRAINT ACCOUNTS_PK
PRIMARY KEY
(ACCOUNT_ID));
CREATE TABLE ACCOUNT_MODULE_ROLES
ACCOUNT_MODULE_ROLE_ID NUMBER NOT NULL,
ACCOUNT_ID NUMBER NOT NULL,
MODULE_ID NUMBER NOT NULL,
ACCOUNT_ROLE_ID NUMBER NOT NULL
ALTER TABLE ACCOUNT_MODULE_ROLES ADD (
CONSTRAINT ACCOUNT_ROLES_PK
PRIMARY KEY
(ACCOUNT_MODULE_ROLE_ID));
ALTER TABLE ACCOUNT_MODULE_ROLES ADD (
CONSTRAINT AMR_ACC_FK
FOREIGN KEY (ACCOUNT_ID)
REFERENCES ACCOUNTS (ACCOUNT_ID)
ON DELETE CASCADE
ENABLE VALIDATE);
I've created the LOV on AccountModuleRolesView.1. Create a transient attribute AccountFirstName. - Created in AccountModuleRolesView1, attributes a transient string called AccountFirstName with an alias of VIEW_ATTR
2. Create a VA on accountId attribute. - VA? There is a tab called View Accessors and I have three, one for each of the FK's.
3. In attribute mapping ... Where abouts is that? After I've created the LOV?
map ... accountId to accountId I did this in the LOV, list return values, using the VA's I linked in.
and fristName to accountFirstName. Did this also in the same place.
4. In UI hints shuttle accountFirstName. The field doesn't show up in the list to shuffle, only the underlying eo attributes. -
ComboBox: width of list initially too small
Hi everybody,
I've written a littlle application which contains a ComboBox. The ComboBox contents will be set asynchronously. When the contents are set and I expand the list, the width of the list is initially too small. After I close the list and expand it again, the width of the list is correct. Did I make anything wrong???
Sample:
package combotest;
import java.util.ArrayList;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.beans.property.ListProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleListProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Label;
import javafx.scene.control.ListCell;
import javafx.scene.control.ListView;
import javafx.scene.control.SingleSelectionModel;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.layout.Priority;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;
import javafx.util.Callback;
public class ComboTest extends Application implements EventHandler<WindowEvent>
private ComboBox<Test> combo = null;
private ObservableList<Test> observableTests = FXCollections.observableArrayList();
private ListProperty<Test> tests = new SimpleListProperty<Test>(observableTests);
private ObjectProperty<SingleSelectionModel<Test>> selectedTest = null;
public class Test
private String label;
public Test(String label)
this.label = label;
public String getLabel()
return label;
public class TestListCell extends ListCell<Test>
@Override
protected void updateItem(Test arg0,
boolean arg1)
super.updateItem(arg0, arg1);
if((arg0 == null) || arg1)
setText("");
else
setText(arg0.getLabel());
@Override
public void start(Stage arg0) throws Exception
VBox vbox = new VBox();
vbox.getChildren().add(createComboPane());
arg0.setScene(new Scene(vbox, 400, 200, Color.WHITE));
arg0.setTitle("ComboTest");
initialize();
arg0.setOnCloseRequest(this);
arg0.show();
public static void main(String[] args)
launch(args);
@Override
public void handle(WindowEvent arg0)
System.exit(0);
private Pane createComboPane()
HBox hbox = new HBox();
hbox.setPadding(new Insets(5));
hbox.setSpacing(15);
hbox.setAlignment(Pos.CENTER_LEFT);
VBox.setMargin(hbox, new Insets(5));
Label label = new Label("A combo");
combo = new ComboBox<>();
combo.setEditable(false);
combo.setMaxWidth(Double.MAX_VALUE);
combo.setButtonCell(new TestListCell());
combo.setCellFactory(new Callback<ListView<Test>, ListCell<Test>>()
@Override
public ListCell<Test> call(ListView<Test> arg0)
return new TestListCell();
combo.valueProperty().addListener(new ChangeListener<Test>()
@Override
public void changed(ObservableValue<? extends Test> arg0, Test arg1, final Test arg2)
HBox.setHgrow(combo, Priority.ALWAYS);
hbox.getChildren().addAll(label, combo);
return hbox;
private void initialize()
combo.itemsProperty().bind(tests);
selectedTest = new SimpleObjectProperty<SingleSelectionModel<Test>>(combo.getSelectionModel());
combo.selectionModelProperty().bindBidirectional(selectedTest);
new Thread(new Runnable()
@Override
public void run()
try
Thread.sleep(3000);
final ArrayList<Test> testList = new ArrayList<>();
testList.add(new Test("Test entry 1"));
tests.set(FXCollections.observableArrayList(testList));
Platform.runLater(new Runnable()
@Override
public void run()
selectedTest.get().selectFirst();
catch(InterruptedException e)
}).start();
}There is a bug: https://javafx-jira.kenai.com/browse/RT-28876
ComboBox popup list is wrong width the first time it is shown if the ComboBox is wider than prefWidth.
This is fixed in javafx8.0 already, but not in javafx2. -
X6 problems with popups - missing images
We recently purchased RoboHelp X6 and generated a X5 project
in X6 and the popups that were working fine in X5 (gif images) are
now not working (not showing up in output file).
Anyone have this problem? Some of them have conditional
tagging as well. Any suggestions? We are going to try and
troubleshoot by removing the conditional tagging and see if that is
the problem, but I just wondered if X6 was handling autosizing
popups differently than in X5??Alas, the RH 6 hyperlink dialog for auto- and custom-sizing
popups lists .htm files and bookmarks only. As you have discovered,
you can use the "Display in frame" feature, specify a new window,
and you get your popup. But you lose the click-close feature. The
user has to click the "X."
I'd like to make a couple of points.
1. Direct placement of any file into the project's Windows
directory deprives RH of the "knowledge" that the file is part of
the project. When you insert a link to the file, RH adds it to the
project list.
2. You can import images as baggage files, and RH will keep
track of them in the project database. However, popup dialogs don't
list baggage image files.
3. Instead, I save screen captures elsewhere. I often crop,
resize and otherwise fiddle with images for graphic effect. I
prefer not to work from the graphics application in the RH project
folder, because I would have to keep careful track of which images
already are linked. Resizing a linked image distorts the output
because its original dimensions are in the html code. I would have
to go back and re-link to the revised image.
4. When it's ready to be brought into the project, I import
an image into a new topic, sometimes with a headline or caption,
but usually with no text. If I have a lot of them, sometimes I add
a folder to the project explorer for popups and use a file name
like homescreen_pop.htm to remind me of which topic it belongs to.
Since it's an htm file, it appears in the popup hyperlink
file list.
Yes, it's an extra step. I find it well worth the trouble.
Harvey
Maybe you are looking for
-
I have several Windows Server 2012 R2 hosts. The OS is freshly installed, no roles/3d party software besides Hyper-V role). I also have a freshly installed VMM 2012 R2 server. They all are in the same AD domain. I want to manage those Hyper-V hosts w
-
Best storage solution for collaborative editing between two editors
Hello! I was wondering what would be a recommended hardware storage solution for collaboratively editing Final Cut Pro X Libraries. Our current process revolves us copying all the video footage onto a portable drive and copying it over to each others
-
Iphone 5 not working in usb socket of 2011 nissan navara teckna
My vehicle is 1 year old and worked very well with my iphone 4. Since upgrading to an iphone 5 I cannot get the usb socket to accept it. It does not recognise it, or indeed charge the phone. is it my phone or a problem with the vehicle not recognis
-
Nokia E7 switch offed auto and now can not on...
Nokia E7 switch off auto and now can not on... also it not charging ... what is the problm .. ?? please give me some solution for this ... ASAP...
-
Using unlocked IPhone 4 from Canada in Russia
I have bought IPhone 4 in Canada (MC603C/A) and I want to use it with a Russian (MTS) SIM card. When I insert this SIM card my IPhone writes "no SIM". I have cheked this SIM - it is working. Please help, What I need to do?