Some dialogs where i have to input text freeze
the problem is only in some compilers.
i attach a copy of my code
package rail.editor;
import rail.model.*;
import javax.swing.JOptionPane;
import javax.swing.*;
import java.beans.*; //Property change stuff
import java.awt.*;
import java.awt.event.*;
public class RenameStationDialog extends JDialog {
private String typedText = null;
private JOptionPane optionPane;
private Network network = null;
private Station station = null;
public String getValidatedText() {
return typedText;
public RenameStationDialog(JFrame frame, final Station st,
final Network network) {
super(frame, "Rename Station ",true);
this.network = network;
station = st;
final String msgString1 = "Enter the new station name";
final JTextField textField = new JTextField(station.getName(), 10);
textField.selectAll();
Object[] array = {msgString1, textField};
final String btnString1 = "Enter";
final String btnString2 = "Cancel";
Object[] options = {btnString1, btnString2};
optionPane = new JOptionPane(array, JOptionPane.PLAIN_MESSAGE,
JOptionPane.YES_NO_OPTION,
null,
options,
options[0]);
setContentPane(optionPane);
setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent we) {
optionPane.setValue(new Integer(
JOptionPane.CLOSED_OPTION));
textField.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
optionPane.setValue(btnString1);
// rename dialog properties
setResizable(false);
setLocationRelativeTo(getOwner());
pack();
optionPane.addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent e) {
String prop = e.getPropertyName();
if (isVisible()
&& (e.getSource() == optionPane)
&& (prop.equals(JOptionPane.VALUE_PROPERTY) ||
prop.equals(JOptionPane.INPUT_VALUE_PROPERTY))) {
Object value = optionPane.getValue();
if (value == JOptionPane.UNINITIALIZED_VALUE) {
//ignore reset
return;
optionPane.setValue(JOptionPane.UNINITIALIZED_VALUE);
if (value.equals(btnString1)) { // user presses ok
typedText = textField.getText();
try {
network.rename(station, typedText);
} catch (ModelException me) {
String error = me.getMessage();
JOptionPane.showMessageDialog(
RenameStationDialog.this,
"Sorry, cannot rename station\n"
+ error,
"Renaming Error",
JOptionPane.ERROR_MESSAGE);
typedText = null;
setVisible(false);
} else { // user closed dialog or clicked cancel
typedText = null;
setVisible(false);
}); // end of property change listener
I call the dialog like that:
RenameStationDialog d = new RenameStationDialog(editor,
selectedStation, network);
// show the dialog for renaming
d.setVisible(true);
I have the same problem (and struggle with it!). A JOptionPane.showInputDialog that works with jdk1.3 suddenly freezes my application when run with 1.4. Funny thing is, other calls to JOptionPane.showInputDialog work perfectly fine... Hm...
I haven't found any solution for it, though. I tried compiling with jdk1.3 and then running with jdk1.4, but the problem persists. But as I said, running it with jdk1.3 does not cause the application to hang.
Sorry to be of no help. Hope someone else knows a workaround!
~H
Similar Messages
-
I need help I turned some mode on that makes me duoble tap whatever i want to open it say whatever it is i am touching and I cant figure out how to scroll to turn it off
It is an accessibility setting and is covered in the manual:
iPhone User Guide (For iOS 5.1 Software) -
a popup named The Browser Highlighter appears when Mozilla is turned on. it is frozen and does not respond and will not disappear
== This happened ==
Every time Firefox opened
== when i updated the the latest version of firefoxStart Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
If you have many extensions then you can first enable half of the extensions to test which half has the problem.
Continue to divide the bad half that still has the issue until you find which one is causing it. -
Hidden password in input text box
How do I hide the letters in a password input text box. I
have an input text box for the viewer to type in a password and
would like the password to not show when typed in, like is the case
with html text boxes, where you just see a bullet for each letter
in the password. How would I do this? Is there a font I could use?
Thanks for any help with this.Select the Input text object on the stage. In the Properies
window, select the pulldown at the bottom center, it probably says,
"Single line". Select "Password". You can then get the actual text
that the user types in by asking for the instance name's text value
or the variable's value for that Input text field. Be sure to embed
the font that you want to use. -
Instance name and Var for Input Text fields
I have several Input Text fields, as a form, linked to a PHP
script for which I require Var's for each field.
But I also need Instance names for each field, so I can fix
the tabIndex.
Yet, everytime I test my movie, the text fields have their
Paths (_level0.fName) written in them.
They are normally blank, and I've tried putting in some text
of my own, but the Var name is still displayed in the text fields.
Is there any way I can stop that from happening, and keep
both the Instance names and Var's in-place.
As far as I know, I need both the Instance name (for the
tabIndex) and the Var (for the PHP script) or is there a way that
the tabIndex and PHP script will work with either of the two?
Thanks
Chaz.Can you use a different name for ‘instance name’
and ‘var’? That seems to solve the problem but I
don’t know if that helps you in your situation.
For an example;
Instance name: test_txt
Var: test -
Hi,
I've two questions below,
1. I want to create an ADF input text , which looks like a normal textbox but user cannot input anything in it(same as <input type="text" readonly="true">) . Is there any way to have an input text like that by using adf component? ( I do not want to use disabled="true" because it looks very different and cannot add an error message to that component if it's disabled)
2. I know JSF input text can work as required in #1 by using <h:inputText id="it4" readonly=true/>. But if I use JSF input text , its css style looks very different to other af:inputText on the pages. Is there any way to apply ADF CSS style class to <h:inputText id="it4" readonly=true/>
Thank you for your help!Hi Ajay,
what Sireesha trying to say don't wake up the thread which are slumbering.
Reason, Besides you wont get any chances reply in this thread.some one may ignore it ah old one. so better to avoid that get your answer in faster means please be clear with your question. then there you may hook up this thread. you can say i referred this thread. but no luck.
Thanks. -
Input text field nested in movie clip?
Hello,
Is it possible to have an input text field inside a movie
clip in Flash Lite 2? I've tried targeting it all different ways
and it doesn't seem to work, so I just thought I'd check with
someone who knows.
Thanks for your help in advance!Hi Nirnalatha,
I have newly joined this forum and while going through the
posts I came across your post which I thought I could help out. But
I think I am too late for the reply.
I am also into Flashlite development couple of months from
now. Coming to your questions:
1. Textbox problem: I am surprised to know that E70 mobiles
(Device central list has E70-1 only) does not show input text box
when cursor is in input box. Anyways its a good thing that you dont
get an additonal input box. Like all J2ME applications you will be
able to type the text inline. Infact we had reverse problem where I
was told to create inline edit input box instead of flashlite input
box. I think this is the mobile setting. Check the device features
in the Adobe Device Central under Flash - Standalone player - Text
and Fonts features. It will be mentioned whether inline text is
allowed or not.
2. Soft keys issues: You need to use
fscommand2("SetSoftKeys", "Previous", "Next");
and use a key listener in order to override the Mobile
Softkey commands. Check out the flashlite help which clearly
explains this.
Hope I have given youa way to solve ur problem. -
Conditionally Show and Hide Input Text
JDev 11.1.1.5.0
I have two input texts PROFILE and SCORE.
SCORE is shown only if my value in PROFILE is E or F.
And if, it should be hidden once the PROFILE value is changed to some other value.
Also, please note SCORE field should be mandatory if the PROFILE value is E or F.
Here is the code what I tried so far:
<af:inputText value="#{bindings.Profile.inputValue}"
label="#{Resources.PROFIL}"
required="true"
columns="#{bindings.Profile.hints.displayWidth}"
maximumLength="1"
shortDesc="#{bindings.Profile.hints.tooltip}"
id="it94" autoSubmit="true">
<f:validator binding="#{bindings.PsamProfile.validator}"/>
</af:inputText>
<af:inputText value="#{bindings.Score.inputValue}"
label="#{Resources.SCORE}"
required="#{bindings.Profile.inputValue == 'E' or bindings.Profile.inputValue == 'F'}"
columns="#{bindings.Score.hints.displayWidth}"
maximumLength="#{bindings.Score.hints.precision}"
shortDesc="#{bindings.Score.hints.tooltip}"
id="it164"
visible="#{bindings.Profile.inputValue == 'E' or bindings.Profile.inputValue == 'F'}"
partialTriggers="it94"
contentStyle="text-align:left;"
autoSubmit="true">
<f:validator binding="#{bindings.Score.validator}"/>
<af:convertNumber groupingUsed="false"
pattern="#{bindings.Score.format}"/>
</af:inputText>
I have tried using a parent component and using rendered attribute for the SCORE field as explained in https://blogs.oracle.com/Didier/entry/only_rendered_adf_faces_compon, but it still didn't help.Forgot the PROBLEM part
PROBLEM is: If I change the PROFILE value to some other value than E or F, the SCORE field is not getting hidden as expected and in fact it is throwing a mandatory validation. -
Input Text will not allow me to access the correct answer!
Hi All
i am trying to create a simple quiz in school. I have one test question which requires the answer to be -1.
I have created Input text and assigned the variable answer for this question.
I have a button with the following AS2 script:
on (press, keyPress "<Enter>") {
if(answer eq "-1" or answer eq "minus 1"
or answer eq "Minus 1" or answer eq "Minus one" or answer eq "minus one")
{_root.gotoAndStop(2)
} else
{_root.gotoAndStop(3)
Firstly whatever you type the numerical keys are immobilised on the keyboard when the .SWF file is built
Secondly I cannot enter the correct answer!! If I type in Minus 1 etc it goes to frame 3.
I have tried flags rather than frame numbers - same problem.
i have tried remaking the quiz as a separate file.
using CS4 and CS5 flash - windows 7 PC.
Please help!!
teacheRuss
Ned
Thanks for the reply. I had instances for all elements but had code on teh but (Instance Enter). I have tried your code with my instance names. The button is Q1 (I was going to add more if it worked). The vaiable name for the Insert text box is ans1 so I used the code below. I added the code to frame 1 in teh timeline. I think this is what you meant so a frame script as opposed to a buton script. i have always scriped buttons (very simple). I have played around with the trace(); function but i am not sure where to run it from. I have added it to the script below. I tried Q1 which is the button and ans1 (variable). It must be wrong as I cannot see any output. Last thing. Is it not right ot use eq and or?? I am using Actionscript 2.
The disabled keys is the same running the code on my mac and pc!
Q1.onRelease = function() {
if(ans1.text == "-1" || ans1.text == "minus 1" || ans1.text == "Minus 1" || ans1.text == "Minus one" || ans1.text == "minus one") {
_root.gotoAndStop(2)
} else {
_root.gotoAndStop(3)
trace(Q1);
Ned
Thanks for the reply. I had instances for all elements but had code on teh but (Instance Enter). I have tried your code with my instance names. The button is Q1 (I was going to add more if it worked). The vaiable name for the Insert text box is ans1 so I used the code below. I added the code to frame 1 in teh timeline. I think this is what you meant so a frame script as opposed to a buton script. i have always scriped buttons (very simple). I have played around with the trace(); function but i am not sure where to run it from. I have added it to the script below. I tried Q1 which is the button and ans1 (variable). It must be wrong as I cannot see any output. Last thing. Is it not right ot use eq and or?? I am using Actionscript 2.
The disabled keys is the same running the code on my mac and pc!
Q1.onRelease = function() {
if(ans1.text == "-1" || ans1.text == "minus 1" || ans1.text == "Minus 1" || ans1.text == "Minus one" || ans1.text == "minus one") {
_root.gotoAndStop(2)
} else {
_root.gotoAndStop(3)
trace(Q1);
Input text query results based on input text
<input type="text" name="textfield2" />
hello
i have this input text and i also have a query that contains
where field = '#form.input#'
it is still not displaying the results .
is there a book or a article on how to do this.
i just needed to have a input box /text where a user can
enter a alphanumeric and outputs the query result.
how do you do this?
would you guys like to see the code??
The tag is an Input tad, the input's type is text, it's name
is
textfield2. Your query should have something like field =
'#form.textfield2#'
From the documentation:
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001252.htm
jermainestudent wrote:
> <input type="text" name="textfield2" />
>
>
>
> hello
> i have this input text and i also have a query that
contains where field =
> '#form.input#'
>
>
> it is still not displaying the results .
> is there a book or a article on how to do this.
>
> i just needed to have a input box /text where a user can
enter a alphanumeric
> and outputs the query result.
>
> how do you do this?
>
> would you guys like to see the code??
>
How to set the width of input text
hi ,
i have form, which have few input text.the layout of form is not correct.some input text length is so long, it difficult to make in all input text in same length.Some inputtext have varchar2(1000).how to do that?
hi,
first of all mention the jdev version u r working on
In the input text property there is property called columns.You can give some value like 200 or 300 according to your need.
try this.
Strange:1 Firefox vs. Internet Explorer about Input Text Issue
After a long break, hi everyone,
Here's the case:
1-We have a full flash site hosted on a php+asp mixed web
server.
2-Site is in English and also in Turkish.
3-We have a mail form on "Contact" page.
4-We have 5 input texts which are all has these attributes:
Arial Tur (Exists in Turkish XP SP2 PRO's as default)
Render Text as Html=checked,
Character Embedding=Basic Latin + Latin 1 + Latin Extended A
5-We have a "Send" button, has action:
loadVariables("phpmailer/iletisim.php", this, "POST");
6-We have a html index, published within Flash CS3, beginning
with:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<head>
<META http-equiv=Content-Type content="text/html;
charset=utf-8">
7-IExplorer:7.0.5730.13, Firefox:2.0.0.10,Flash:CS^(Flash9,
AS2)
Here are the problems:
1-When i open the file with internet explorer i can not input
some Turkish characters, but not all of them. When i copy these
characers from notepad and paste, i can see all of them. Firefox
has no problem until here.
2-But for both browsers when i send the form with turkish
characters, i get a messed up mail with unusual characters. I
checked out the sendmail.php (a generic name) file, it mails
turkish characters just fine.
Thanks a lot.
See you on the next chapter of "Strange Things Happening to
me ,I Hope I'm not Alone."
I found the solution.
in publish settings, if "transparent windowless" option
selected some of non-western characters can not be shown in dynamic
or input text boxes.
This is a Flash Player 9 bug.
Select "opack windowless" or "window" or use one of older
flash player versions.
Many thanks to you, adobe, for your interest.
Hi, I have searched the forums and haven't found what I am looking for.
I want to have an input text box for the user to enter their name into. On the next frame I want it to say Welcome 'username'.
Thanks
You can access the text of an input box using the text propery of it. It will return a string
var str:String = inputBox.text;
Problem with action script 3 make input text box and button....
Hi every one I am trying to make a family book using "Air for Android" with a simple search engin in the book
air for android only work with AS3,
the search function is to type a person's name and hit submit then go to a specific frame.
have a problem making below code to work in AS3 and hopefully one of you guys can lead me in the right direction to fix the issue.
Currently, I have an input text box and a button. When you type specific words into the input box and then hit the button it sends you to a specific frame.
(it work find in AS2 but not in AS3,)
Here is my current code that is placed on the main timeline, first frame:
stop();
onEnterFrame = function () {
submit.onRelease = function() {
switch (yourname.text) {
case "name1" :
gotoAndStop(2);
break;
case "name2" :
gotoAndStop(3);
break;
My button that checks if the phrase is correct is called "submit" and my input box has an instance of "yourname".
My phrases that will be accepted in the input box are "name1" and "name2" which bring me to two different frames.
Basically, I'm having a problem with making this to work with AS3.
you should use the default option in the switch statement
that way yourname contains something not in one of the case statements it will go to the default bit and execute teh code there
function onSubmit(e:MouseEvent):void
switch (yourname.text)
case "name1":
gotoAndStop(2);
break;
case "name2":
gotoAndStop(3);
break;
default:
goToAndStop(you frame you want);
break;
I have a "input text with list of values" field.
Is there a way to to ignore case in this field please? (currently if I enter a value as "test" it says it is not valid even though there is a value "TEST" available.)
Is there a property setting?
Thanks
i am not sure if this is supported fro af:inputTextlistofValues.. but you can try
1) having a content style as "text-transform: uppercase" which will transform the text entered in Uppercase.. and forces uppercase all the time
2) removing any validation that is applied to this component.. by removing the validator tag.. if its available.. as suggested above
Maybe you are looking for
-
Images not displayed properly jv:imageButton tag
Images are not displayed jv:imageButton tag. I am able to see the images sometimes, but not consistently. I have followed the steps mentioned from the Platform RI. I was able to see the images without any problem before Beta 3/JDev R1 uptake. I had m
-
IPod Battery Replacement Program
Hi Everyone, My green iPod mini is now in need of a new battery. I read over the Battery Replacement FAQ, but I'm not sure how the condition of the iPod mini I recieve will be. So I guess I have a few questions. Has anyone participated in this progra
-
Anchored Table Width in Printed Documentation
Hi all, I'm working in RoboHelp 8 HTML and am dealing with a new pain point. Recently I created a step by step how to guide on a page within a table. Instructions are in one column and images in an adjacent column. I discovered however that the table
-
Adobe Audition CC????
I am using Adobe Audition CC with an iMac OSX 10.8.5 3.2 GHz Intel Core i5, 8 GB RAM 1600 MHz DDR3 HD, and an Alesis Multimixer 8 USB as my interface. I have matched all the settings for both the inputs/outputs, built in settings matched as precaut
-
BPEL sequential database polling
Hi, I need help in understanding how should I design my process: The BPEL process that I developed (created from template Empty BPEL Process) needs to poll a database table and process the records in the order in which they are inserted there. Will u