Why TextBox in HTML Panel need double-click?
I am writing a panel with a html widget in it to input some information of image file and upload it to my server. But the textbox could not get focus unless you double-click on it. This drives our simple-minded staff crazy. Any one have workaround for this? Or can I have alternative ways to acheive my goal?
Thanks,
James
This maybe a bug of configurator. You may file a request here
http://feedback.photoshop.com/photoshop_family
Configurator panel is a flash panel, and embeded a HTML widget in it, and then embeded a text box in the HTML widget, they may have trouble to handle focus and click event.
Similar Messages
-
Needs double click to edit cell in JTable
I know this is bad design but there's no other way that I could possibly meet the requirement which is to have dynamic components. Anyhow, the requirement is to have any kind of components(e.g. TextFields, Combobox, Regular expression fields, a panel with a number of checkboxes) in a table cell in the same column. It would have been easier to do this by using the the DefaultCellEditor, with the 'panel containing a number of checkboxes' I cannot use it.
I already have an implementation for this requirement. There was no problem with it when we used Java 1.5. But when we shifted to Java 1.6, I noticed that I need to double-click on a cell so that I can edit it. I did not notice this behavior at all with 1.5. What could have changed in 1.6?
Below, are my (trimmed-down) codes:
//TestComponent.java
public class TestComponent extends JPanel{
private int componentHeight=16;
public TestComponent(int i){
this.setPreferredSize(new Dimension(90, this.componentHeight));
setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
switch (i){
case 0: createTextField(); break;
case 1: createCheckBox(); break;
case 2: createCombo(); break;
private void createTextField(){
String text = null;
int textFieldMaxLength = 5;
JTextField oText = new JTextField(textFieldMaxLength);
// add it to this Panel:
this.add(oText);
// set the data:
text = "test";
oText.setText(text);
// set size for this TextField:
Dimension fieldSize = new Dimension(
textFieldMaxLength * 13, this.componentHeight);
oText.setPreferredSize(fieldSize);
oText.setMinimumSize(fieldSize);
oText.setMaximumSize(fieldSize);
private void createCheckBox(){
JCheckBox chkbox = new JCheckBox();
this.add(chkbox);
private void createCombo(){
JComboBox combo = new JComboBox(new String[]{"apple", "orange", "plum", "grapefruit"});
Dimension fieldSize = new Dimension( 5 * 13, this.componentHeight);
combo.setPreferredSize(fieldSize);
combo.setMinimumSize(fieldSize);
combo.setMaximumSize(fieldSize);
this.add(combo);
//ComponentCellEditor.java
public class ComponentCellEditor extends AbstractCellEditor
implements TableCellEditor, Serializable{
protected JComponent editorComponent = null;
public Component getComponent() {
return editorComponent;
public Object getCellEditorValue() {
return editorComponent;
public boolean isCellEditable(EventObject anEvent) {
return true;
public boolean shouldSelectCell(EventObject anEvent) {
return true;
public boolean stopCellEditing() {
fireEditingStopped();
return true;
// Implementing the TreeCellEditor Interface
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
this.editorComponent = (TestComponent)value;
return editorComponent;
//ComponentCellRenderer.java
public class ComponentCellRenderer implements TableCellRenderer
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
TestComponent oComp = (TestComponent) value;
if (isSelected) {
oComp.setForeground(table.getSelectionForeground());
oComp.setBackground(table.getSelectionBackground());
} else {
oComp.setForeground(table.getForeground());
oComp.setBackground(table.getBackground());
return oComp;
//TestTable.java
public class TestTable
public static void main(String []args){
String columns[] = {"Text", "Value"};
Class types[] = {String.class, TestComponent.class};
boolean editable[] = {false, true};
AsrTable table = new AsrTable(new Dimension(200, 150), columns, types, editable);
table.addRow(new Object[]{"Field1", new TestComponent(0)});
table.addRow(new Object[]{"Field2", new TestComponent(1)});
table.addRow(new Object[]{"Field3", new TestComponent(2)});
table.setDefaultEditor(TestComponent.class, new ComponentCellEditor());
table.setDefaultRenderer(TestComponent.class, new ComponentCellRenderer());
table.setShowGrid(false);
table.setRowHeight(20);
table.setRowSelectionAllowed(false);
JFrame frame = new JFrame();
frame.addWindowListener( new WindowAdapter() {
public void windowClosing(WindowEvent e)
Window win = e.getWindow();
win.setVisible(false);
win.dispose();
System.exit(0);
JScrollPane pane = new JScrollPane(table);
frame.getContentPane().add(pane);
frame.pack();
frame.setVisible(true);
}My last post doesn't have Code Formatting.
// TestComponent.java
public class TestComponent extends JPanel{
private int componentHeight=16;
public TestComponent(int i){
this.setPreferredSize(new Dimension(90, this.componentHeight));
setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
switch (i){
case 0: createTextField(); break;
case 1: createCheckBox(); break;
case 2: createCombo(); break;
private void createTextField(){
String text = null;
int textFieldMaxLength = 5;
JTextField oText = new JTextField(textFieldMaxLength);
// add it to this Panel:
this.add(oText);
// set the data:
text = "test";
oText.setText(text);
// set size for this TextField:
Dimension fieldSize = new Dimension(
textFieldMaxLength * 13, this.componentHeight);
oText.setPreferredSize(fieldSize);
oText.setMinimumSize(fieldSize);
oText.setMaximumSize(fieldSize);
private void createCheckBox(){
JCheckBox chkbox = new JCheckBox();
this.add(chkbox);
private void createCombo(){
JComboBox combo = new JComboBox(new String[]{"apple", "orange", "plum", "grapefruit"});
Dimension fieldSize = new Dimension( 5 * 13, this.componentHeight);
combo.setPreferredSize(fieldSize);
combo.setMinimumSize(fieldSize);
combo.setMaximumSize(fieldSize);
this.add(combo);
// ComponentCellEditor.java
public class ComponentCellEditor extends AbstractCellEditor
implements TableCellEditor, Serializable
protected JComponent editorComponent = null;
public Component getComponent() {
return editorComponent;
public Object getCellEditorValue() {
return editorComponent;
public boolean isCellEditable(EventObject anEvent) {
return true;
public boolean shouldSelectCell(EventObject anEvent) {
return true;
public boolean stopCellEditing() {
fireEditingStopped();
return true;
// Implementing the TreeCellEditor Interface
public Component getTableCellEditorComponent(JTable table, Object value,
boolean isSelected, int row, int column) {
this.editorComponent = (TestComponent)value;
return editorComponent;
// ComponentCellRenderer.java
public class ComponentCellRenderer implements TableCellRenderer
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row,
int column) {
TestComponent oComp = (TestComponent) value;
if (isSelected) {
oComp.setForeground(table.getSelectionForeground());
oComp.setBackground(table.getSelectionBackground());
} else {
oComp.setForeground(table.getForeground());
oComp.setBackground(table.getBackground());
return oComp;
// TestTable.java
public class TestTable
public static void main(String []args){
String columns[] = {"Text", "Value"};
Class types[] = {String.class, TestComponent.class};
boolean editable[] = {false, true};
AsrTable table = new AsrTable(new Dimension(200, 150), columns, types, editable);
table.addRow(new Object[]{"Field1", new TestComponent(0)});
table.addRow(new Object[]{"Field2", new TestComponent(1)});
table.addRow(new Object[]{"Field3", new TestComponent(2)});
table.setDefaultEditor(TestComponent.class, new ComponentCellEditor());
table.setDefaultRenderer(TestComponent.class, new ComponentCellRenderer());
table.setShowGrid(false);
table.setRowHeight(20);
table.setRowSelectionAllowed(false);
JFrame frame = new JFrame();
frame.addWindowListener( new WindowAdapter() {
public void windowClosing(WindowEvent e)
Window win = e.getWindow();
win.setVisible(false);
win.dispose();
System.exit(0);
JScrollPane pane = new JScrollPane(table);
frame.getContentPane().add(pane);
frame.pack();
frame.setVisible(true);
} -
My IPad needs double click to access anything and does not scroll through anything
IPad needs a double click to access anything and then does not scroll down.
Do you need to tap (and the app/item then gets a box around it) and then double-tap ? If you do then you probably have VoiceOver (one of the accessibility features) 'on'. Try triple-clicking the home button and see if that turns it off, and if it does you can then change what a triple-click does via Settings > General > Accessibility > Triple-Click Home.
If that doesn't turn it off then you can either turn it off directly on the iPad (you need to use a tap-to-select and then double-tap to activate/type process and 3 fingered scrolling) to go into Settings > General > Accessibility and turn VoiceOver 'off', or you can do it by connecting to your computer's iTunes : http://support.apple.com/kb/HT4064 -
Trivial problem: a Flash 8 animation which has an embedded
URL button with a geturl - whether 'press' or 'release' - attached
needs a double click to function; single-click selects the
animation itself (frame displays the 'selected' border). How pls
can I get the button to work with a single click like a normal
<a> URL ?I think the problem you facing is the active content warning.
You can easily see that when you mouse over your flash movie
a gray border appears around it and a bubble tells you that you
need to click to activate.
If this is the case, you need to download the flash 8 update
that has a new set of templates to remove that system.
The update can be found here:
http://www.adobe.com/support/flash/downloads.html -
Flash Panels and double clicking with a stylus
Many Flash panels are hard to use with a stylus because of the non-standard way double clicking is implemented.
For example, when double clicking a color in the Kuler panel to set it as the active color, it requires both clicks to be on exactly the same pixel. When using a stylus, it is likely to move a pixel or two between clicks. The Wacom driver allows the user to set a double click distance, but it is ignored in Flash.For example, when double clicking a color in the Kuler panel to set it as [Photoshop's] active color, it requires both clicks to be on exactly the same pixel.
I want to load the color into Photoshop's foreground color..
Another example: In Mini Bridge, double clicking is used to open a folder that is in the content pane.
I can work around these issues, but they shouldn't be there. -
Can't Play Game Needing Double Click
I'd appreciate help with this.
I've been trying to play the card game "Cruel" on my iPad at this URL:
http://bezumie.com/solitaires/cruel.php
How do I select a card, or (I guess) double-click on it?
I've tried both Safari and Chrome with no luck.
Thanks for any help.
MilemanQuote from: orchid on 14-March-05, 20:46:22
I changed PSU.. ATX-480 , DC O/P 480W , +3.3V=27A , +5V=35A , +12V=17A , -5V=0.5A ,-12V=0.5A , +5USB=2.0A
but no good. pls help...!
Hi
I updated BIOS V1.6 from old V1.4 . Now I can play game If I set DDR frequency to Auto ,system reboot
but 400 is good .
My system is MSI 915 P Combo , NX6200-TD128E , Processor 3.0 GHz , ( Dual)2x Kingston KVR400X64C3A/256 , 1 Seagate ATA 80GB ,
1 Samsung Rom ,1 system Fan (power connector from PSU) ,2 south/north bridge Fan(power connector from on board) .
PSU specs ....
INPUT :115V/230V AC 50/60Hz
7A/3.5A
OUTPUT:400W MAX
+5V : 28A
-5V : 1A
+12V : 15A
-12V : 1A
+3.3V : 19A
+5VSB : 1.5A
All thanks a lot . -
Flash Buttons and UI Components need double click to work. Any Solution?
Hi,
I have just finished making an application for Kiosk in Flash. However while testing I noticed that the buttons I used and UI components like textfield, textarea, radiobuttons, etc need to be touched twice to make them function. Can anyone tell why this happens and how to solve this issue? Its very frustrating for a user to keep clicking on the component to make it active first and then make it work.
Note: Is it like Flash UI components need time to get active on screen and then they function?
Thanks in advance.Thanks for the reply ReshapeMedia.
What I want to say is I have a Flash exe file which contains feedback form for customers. This exe is displayed on Kiosk where user can interact with it using touch screen. The problem here is - when user touches (clicks) on the input field on screen or selects a radio button, it takes him several attempts to do so. In other words, user keeps on touching and tapping to activate the input field first and then somehow it gets activated and after multiple touches it allows them to enter the data/ radio button is selected and other buttons functions.
This obviously adds to users frustration.
This application is not loaded in IE so there is no browseer involved here.
You mentioned a script trigger a mouse click. What is that? (I have addEventListener on my buttons already) Kindly explain a bit. Thanks a lot. -
Music pauses and needs double click at the remote to go on
I walk my dog 3 times a day, and I always do it whilst listening to music on my Iphone 3GS.
At the beggining I did not have this problem, but all of the sudden it started to happen.
The first time I play music once I'm on the street (specially if there was a restart before) it's fine, but if I manually pause the music with the clicker, after I unpause it begins to do random pauses in the music. It could take 5-20 seconds or even more than a minute to do so. And to unpause it, I have to click once, I hear music for about 0.2 sec, it gets paused again, and only with the second click it gets really unpaused.
After this happens 2 or 3 times in the same walk, the next unpause makes the music start to sound all cracked up and I have to disconnect the jack and put it back on. That solves it momentarily. If I pause manually again, it all re starts.
But the crazy thing compared to everyone else having issues with music randomly stopping, is that I always need to press the clicker twice to playback.
Note: I pause the music manually many times because I cross other people's dogs and I start chatting with them.
Music never skips, only pauses.
I have changed headphones without any luck.
I went from a 3.x firmware (don't remember which one I had) to 4.3.1 with the same results.
I have tried listening to music with no applications at all loaded into memory except the ipod.
Shake to shuffle is of course off.
I have tried another application to play the music with the same results (but I think these apps really use the ipod app to actually play music).
I have cleaned the jack with q-tips, air etc.
I'll aprreciate if anyone can shed some light to this problem.
Cheers!Restore your iPhone and sync the music onto it again. Because it's jailbroken, there is no other way to isolate the problem.
Post if the issue persists after the iPhone has been restored. -
why does it show when i double click on the playlist and it won't play the song?
The exclamation point means iTunes is no longer able to locate the track and the location specified. See this article for more details.
iTunes: Finding lost media and downloads
B-rock -
DPS Folio Producer website
I'd like to second publishing
If you double-click the Product ID section
Oh, why does it open portfolio?
Double-click was 40 times.
I must write the name of Product ID.
Product ID to enter in a different way there?Hello ,
Click on publish to enter the product Id .
Laxman -
Can't open subVI by double clicking
This is just irritating the heck out of me. I have a subVI that doesn't seem to be working as I think it should. I'm not sure if it is my problem or the subVI's. But that's not what's bothering me.
If I double-click on the subVI icon (on the back panel of the parent subVI) nothing happens. The subVI does not open. If I right click on the icon and select Open, then the subVI will open. I can open all of the other subVIs on the back panel by double clicking on their icons.What parallel universe have I accidentally entered and how do I get back. I have two hungry daschunds waiting for me.
Solved!
Go to Solution.I said I couldn't open the subVI. I didn't know if the subVI or its
parent was the problem. I'm embarrassed to admit it, but it turns out mercurio had the winning solution.
Also, LabVIEW knows about the
error-list-causing-crashes problem and has a (mickey mouse but it
works) fix for it that involves putting a big cluster on my front
panel.
I
inherited this program. Most of the time I am busy trying to figure out
if the user has found a bug or a really creative way of screwing things
up, adding new features to the code, and getting out the latest
executable along with the latest and greatest user manual. This is a
small company. The previous programmer, who is now my supervisor, is a
very talented electrical engineer whos code works fine but looks like a
circuit board. There are several huge, complicated subVIs that I would
love to refactor. According to the VI analyzer, this program has 600+
local variables and 300+ global variables. I would love to clean all of
that crud up, but I don't get paid to fix things that already work. I
am not allowed to use object oriented concepts or any kind of
semaphores because they confuse my supervisor. I am working on getting
them to let me use some kind of source control program. This program
has close to 500 subVIs in it and keeping track of changes is becoming
too time consuming. -
Double clicking jar executables
Hi everyone
I know that this topic has been discussed before - but I have scanned all discussions, and the problem hasn't been solved yet. There have been some good suggestions, but no definitive solution provided.
I have a jar executable supplied to me by a commercial software company. The application is packaged in a jar file. I have checked that the manifest has the correct Main-Class association in it. I can install the jar on some Win 2000 copmuters and it executes fine by just double clicking on the jar file. On my laptop which also has Win 2000 OS it simply refuses to execute. The very frustrating JVM Launcher error message "Could not find main class. Program will exit." is displayed.
The only way that I have found to get around it is to put a batch file in the same directory as the jar file containing "start /MAX javaw -jar "C:\Program Files\EqWave\eqwave181\eqwave.jar"" and execute this batch file from a shortcut placed on the desktop. Not a very good work-round - but at least it works.
What I can't figure out is why the jar will work when double clicked on some computers, but not on my laptop. Obviously it has something to do with my laptop setup.I have reinstalled the latest jre-1_5_0-windows-i586.exe, but it still won't work.
Please, please, pretty please - what am I doing wrong?????
Cheers
Mike TOn your laptop the file association could be wrong : check if the file association with .jar is "javaw -jar" and not only "javaw".
It looks like the "-jar" option is missing in the command field of your file association...
On my Windows 2000 computer, the file association for .jar is :
"C:\Program Files\Java\j2re1.4.1\bin\javaw.exe" -jar "%1" %*Modify your file association and I bet it will be better. -
TEMPCOMBO opens in double click
Hi,
https://social.msdn.microsoft.com/Forums/office/en-US/01ba96be-5801-4eda-95d9-e01cea835567/temp-combobox-doesnot-work-in-protected-sheet?forum=exceldev
'==========================
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, _
Cancel As Boolean)
Dim str As String
Dim cboTemp As OLEObject
Dim ws As Worksheet
Set ws = ActiveSheet
ScreenUpdating = False
Set cboTemp = ws.OLEObjects("TempCombo")
On Error Resume Next
With cboTemp
'clear and hide the combo box
.ListFillRange = ""
.LinkedCell = ""
.Visible = False
End With
On Error GoTo errHandler
If Target.Validation.Type = 3 Then
'if the cell contains a data validation list
Cancel = True
Application.EnableEvents = False
'get the data validation formula
str = Target.Validation.Formula1
str = Right(str, Len(str) - 1)
With cboTemp
'show the combobox with the list
.Visible = True
.Left = Target.Left
.Top = Target.Top
.Width = Target.Width + 5
.Height = Target.Height + 5
.ListFillRange = str
.LinkedCell = Target.Address
End With
cboTemp.Activate
'open the drop down list automatically
Me.tempcombo.DropDown
End If
errHandler:
Application.EnableEvents = True
ScreenUpdating = True
Exit Sub
End Sub
'=========================================
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim str As String
Dim cboTemp As OLEObject
Dim ws As Worksheet
Set ws = ActiveSheet
Application.EnableEvents = False
Application.ScreenUpdating = True
If Application.CutCopyMode Then
'allow copying and pasting on the worksheet
GoTo errHandler
End If
Set cboTemp = ws.OLEObjects("TempCombo")
On Error Resume Next
With cboTemp
.Top = 10
.Left = 10
.Width = 0
.ListFillRange = ""
.LinkedCell = ""
.Visible = False
.Value = ""
End With
errHandler:
Application.EnableEvents = True
Exit Sub
End Sub
'====================================
'Optional code to move to next cell if Tab or Enter are pressed
'from code by Ted Lanham
'***NOTE: if KeyDown causes problems, change to KeyUp
Private Sub TempCombo_KeyDown(ByVal _
KeyCode As MSForms.ReturnInteger, _
ByVal Shift As Integer)
Select Case KeyCode
Case 9 'Tab
ActiveCell.Offset(0, 1).Activate
Case 13 'Enter
ActiveCell.Offset(1, 0).Activate
Case Else
'do nothing
End Select
End Sub
'===================================="
The question is , the tempcombo needs double click to open dropdown. Is it possible that it appears when mouce hover over the cell or with one click ??Hi drsantoshsinghrathore,
I made a simple with your code, and I could reproduce your issue. Based on the code, I think this behavior is expected since the tempcombo needs double click to open dropdown in your code. And if you want to achieve it with one click, I think you could remove
the "Worksheet_BeforeDoubleClick" and modify the "Worksheet_SelectionChange".
The simple code as below:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim str As String
Dim cboTemp As OLEObject
Dim ws As Worksheet
Dim wsList As Worksheet
Set ws = ActiveSheet
Set wsList = Sheets("ValidationLists")
Set cboTemp = ws.OLEObjects("TempCombo")
On Error Resume Next
With cboTemp
.ListFillRange = ""
.LinkedCell = ""
.Visible = False
End With
On Error GoTo errHandler
If Target.Validation.Type = 3 Then
Application.EnableEvents = False
str = Target.Validation.Formula1
str = Right(str, Len(str) - 1)
With cboTemp
.Visible = True
.Left = Target.Left
.Top = Target.Top
.Width = Target.Width + 15
.Height = Target.Height + 5
.ListFillRange = str
.LinkedCell = Target.Address
End With
cboTemp.Activate
Else
With cboTemp
.Top = 10
.Left = 10
.Width = 0
.ListFillRange = ""
.LinkedCell = ""
.Visible = False
.Value = ""
End With
End If
errHandler:
Application.EnableEvents = True
Exit Sub
End Sub
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
Was able to do this at one time. Jpeg in the program monitor and then double-click would give me the resize handles.
I have Premiere Pro 7.2.2, using OS 10.9.2. I used to be able to re-size jpegs "on the fly" in the project panel, by double-clicking on them, which would give me some re-size handles. I cannot do this any more, and it is too much of a pain to have to re-size them otherwise.
The only other software that is running is Chrome and Finder. -
Why can't i open .html the file just by double clicking it???
I have Mozilla fire fox windows 8 . whenever I open a .html file it opens the home page instead the file. then I have to go to file then open file then pen the file . it is very tideous. why can't I open the file just by double clicking it?
Try to redo the default browser setting and temporarily set another browser as the default browser.
*https://support.mozilla.org/kb/how-make-web-links-open-firefox-default
*https://support.mozilla.org/kb/setting-firefox-default-browser-does-not-work
Maybe you are looking for
-
Find the technical name of a report in Crystal 2008(XI R/3)
Hi, I know the report technical name(system genetared) is availble at properties tab in CMC in crystal XI R/2, but I am unable to find the same in XI R/3. Also let me know how to create a open document or generate URL for XI R/3 reports. Thank you, R
-
Hello everybody, This is my first post here. I've been using PC suite for a while (over 2 years now) with my 6131 and even when there was a lot of improvements in PC suite, I've found some problems and inconsistencies in the use. First, sometimes whe
-
SQL*PLUS 32 Bit Client needed for Windows 64 Bit
Hi, I have got a 64 Bit Windows OS and an Oracle 11. With 32 Bit Applications ( Crystal Reports) I can not run SQL NET Thick, SQL NET Thin and JDBC. Oracle 32 Bit Installation is Missing. Oracles "Instant Client Downloads for Microsoft Windows (32-bi
-
License dont show in Business One
Hi All A consultant is having an issue with a new client. He requested their license file and it imports successfully. However when he goes to the license administration, the licenses dont show in sap business one. He seen that the localization is no
-
Adobe reader fails to install due to Acrobat fatal error: CoreDLL failed to load?
I've tried to download this many times and use various patches but no luck. Many times I got stuck with various downloads which were piggybacked onto the download. I'm running windows 7