JFormattedTextField - How to prevent typing of non-digits in the field?
Hi,
I am new to java and wan to know how to completely stop the user to be able to type anything, except digits in the text field. In other words, they should be able to type ONLY digits, nothing else.
Thanks for any helpful inputs.
Two ways,
When something is typed ( each letter ) take it and use regex to check if it is a number. If it is do not use it and do what ever you want, lets say a beep sound.
Or check in the end when he typed the whole word that there are no numbers in and if there are remove them and ask him that all the numbers have been removed, do you wanna continue.
Similar Messages
-
The recent upgrade for i-tunes prevents me from adding and using the Field, "Show". How can I add this field in i-tunes?
Hold down shift as you right-click > Get Info to get the old style dialog box.
tt2 -
How to prevent re-login when switching in the application between different module in 6.1.1.1.11?
Please help me to figure out this or resolve this issue?Be sure to check that your Remoting Container service is running. If it is not, restart the service, and if it goes down again, check the event logs.
Make sure that the AuthenticationBridgeService is enabled in your EnvironmentSettings.config, and the remoting container user is configured using the SetupAssistant.
<RemotingContainer>
<ConfigInfo configChildKey="key">
<add key="UserID" value="@@VAR:Prodika.RemotingContainer.SysUser@@" />
</ConfigInfo>
<!-- Set the following services isActive flag to 'true' or 'false' -->
<RemoteServices configChildKey="name">
<Service
name="AuthenticationBridgeService"
port="@@VAR:Prodika.AuthenticationBridge.Port@@"
isActive="true" />
If the Remoting Container Service fails, please contact Support with details from the event logs. -
trying to download mountain lion OS, but whenever the net connection is broken it restarts from zero, how to prevent this and start downloading from the point it was disconnected
Disable anti virus software and try turning off the Firewall in System Preferences > Security & Privacy > Firewall.
Quit then relaunch the App Store. From the menu bar click Store > Sign In
Then click Store > Check for Unfinished Downloads -
How can I know in which Tables are the fields stored
Hi,
In transaction FSE3 Display Financial Version
Statement Version, if I drilldown in details, I can
see Item No, Chart of Acc, From Accountm To Account D,
C.
when I do a F1 on the fields, I can see that it is a
structure. How can I know in which Tables are the
fields store?Hi Ankit,
There are no rules or guidelines for finding the table but i will share some of the tips used generally.........but i am not sure if we can do it for a tree structure..but try anyways....
Double click on the structure name seen on the F1 pop up window...
in the structure screen, try to analyse the field which is very important something like a key in that set of fields or do the same for the fields which we feel are more important,then click on the domain for that field....once in the domain..click on the "where used list for the domain" on the top...
it will display a pop up -> select only "table" and then press "Tick/OK"..A list will be displayed with the data element and table name ..from this we need to find out the right one we need either by going for text of the table or going through each and every one
It takes time but does the job.....
Regards
Byju -
How to update Tr code FB02 and update the field reference key1 (bseg-xref
Can any body
help me how to update Tr code fb02
and update the field reference key1 (bseg-xref1) with the interest amount
calculated.
Below i have written My program flow logic
The program should read the open items i.e debit items in the customer account,
Based on the invoice date and customer payment terms calculate the due date and then the interest should be calculated on that item based on the due date.
Use the transaction fb02 and update the field reference key 1 (BSEG-xref1)
with the interest amount calculated
Only consider customers whose interest indicator knb1-vzskz = 'vk'.
Interest is to be calculated for every 30 days
at the rate of 1% .please see example below.
Document date is 01.01.2007
for amount 1000SGD payment term 7 days
It becomes due on 08.01.2007
until 06.02.2007 you should not consider for calculation of interest
SGD on 7.02.2007 run you can consider this item for interest calculationHi Robert,
Thanks for answering.
I am looking at Ref 2 should flow automatically to clearing document from the accounitng document for billing.
Ex: Billing document is created and accounted. Ref 2 is AB
Now when receipt is accounted for this biling document this AB should flow automatically to Ref 2 field.
Thanks
NNS. -
I don't know what setting to change so that when I start typing my login (to an email account, etc), the previous entries do not show up. I want the field to start out and stay blank, and have me type the whoe string
== This happened ==
Every time Firefox opened
== has been, all alongClear the Search and Form History, under Tools > Clear Recent History.
And, then turn off the Search and Form History so it won't save it anymore, in Tools > Options >> Privacy - select ''Use custom settings for history'', then un-select Search and Form History -
How to enter numbers in Arabic font in the fields
Hi Everyone,
I installed Adobe Reader 10.0.1 multi-Language and I am able to enter Arabic alphabet in the fields, but when I enter numbers in the fileds, it is English. I don't have this issue in MS-Word. i.e., both letters and numbers depend on my keyboard setting and is English or Arabic respectively. The numbers setting in windows in "depend on context" and I think is fine. Do you know how I can fix this issue? Is there any setting in Adobe that overwrights the Windows setting for numbers?
Thanks a lotI won't say I am very clear about this topic. But I will give an example, which seems to show that number (in the double type) is logically of the form -000.00 while locale spacific String object can be both of the forms "000.00-" and "-000.00"
// you can show the string below (formatted) on a JLabel with the following
//<JLabel_instance>.setFont(new Font("Lucida Sans", Font.PLAIN, 22));
NumberFormat nf = NumberFormat.getInstance(new java.util.Locale("ar","EG"));
//NumberFormat nf = NumberFormat.getInstance(new java.util.Locale("fr","Fr")); // compare
DecimalFormat df=null;
DecimalFormatSymbols dfs= null;
if (nf instanceof DecimalFormat) {
df = (DecimalFormat)nf;
dfs = df.getDecimalFormatSymbols();
dfs.setZeroDigit('\u0660');// set the beginning of the range to Arabic digits.. this can be commented out
df.setDecimalFormatSymbols(dfs);
String formatted = nf.format(-1234567.89); -
How do you print comments that extend beyond the field?
I have created a form in LiveCycle Designer 8.0. It contains a text field that allows recipients to write "beyond the size of the field" if they desire. When we recieve the completed form, of course, we can view the extended comments by clicking on the + sign. But, when we print the form the comments are cut off at the end of the box. How can we print the entire comment directly from the PDF without having to cut and paste into another document? Thanks.
One easy way to resolve this is to change your form to a dynamic form and make that field expandable. To do this, save the file as "Adobe Dynamic XML Form". You will need to change the layout of your form to make it Flowed vs. positioned but before you do that, you will want to prepare the form for this.
Flowed forms layout the fields for you and place each field below the last so you can't control the layout. Positioned layout allows you to put the objects wherever you want with the caveat that you can't expand fields.
What you want to do, is highlight all fields that are positioned and wrap them into a subform. Leave the field you want to expand out of this subform. Then, on the page in Hierarchy view, select the page and the object view and choose Subform "Flowed". Now, on the object that you want to expand with text entry, do the following: on object view, check "allow multiple lines" and "allow page breaks within content"; under layout under height check "expand to fit". Click save and preview. Make sure to change preview settings to Preview Type: Interactive; Preview Adobe XML Form as: Dynamic XML Form.
I will try and attach an example.
Mallard27 -
How to prevent a portal user from using the BEx Analyzer ?
Hi,
we have different type of users : most users may use the portal as well
as the analyzer ;
we have one special user with extended authorizations : this user
should use the portal , where he has a limited set of queries to run
with hardcoded filters ==> this user should not be able to use the
analyzer however, since he then would be able to call all other queries
by using the find function ;
how can we make sure this user cannot use the analyzer , using SAP
authorizations ?
best regards,
Erwin Van Giel.Hi,
if I remove the complete S_RFC authorization for the user then the BEx Analyzer cannot connect anymore to the BW system, but neither can the user run reports from the portal : it needs the S_RFC with 'SYST'.
If I only remove the RRMX from the S_TCODE and from the S_RFC, it does not prevent the user from starting the BEx Analyzer and connecting to the BW system. It only stops the user if he would start the RRMX transaction from within an SAPGUI session.
Perhaps there should be a value in the S_RFC that allows connections from the portal but not from the BEx Analyzer .... ?
so not solved yet ....
best regards,
Erwin. -
How to prevent inline bullets from falling at the end of a line?
Okay, I am SURE the subject of my question is difficult to understand, so I will try to explain a little better below
I am working on a catalog where the bullet points for items are all 'inline' and not each on their own line.
Here is an example below:
• bullet point one • bullet point two • bullet point three • bullet point four
• bullet point five • bullet point six • bullet point seven • bullet point eight
Now, once the item info is placed, the bullet points usually ends up running over several lines because some fo them can be rather long. Now, next to each of the sets of bullet points an image is placed with a text wrap (on the left side of the image only), so that the right side of the set of bullet points wraps to the image. What is happening in a lot of instances tho' is that the bullet point itself falls at the end of a line, and I want to know if there is anything I can do to prevent this from happening and have it rather carry over to the next line. Perhaps there is no way to do this, but I am SO hoping there is. What is so great about InDesign is that I have so far been able to (almost) make it do anything I need it to do:)
So here is an example of what I wish to prevent from happening:
• bullet point one • bullet point two •
bullet point three • bullet point four •
bullet point five • bullet point six •
bullet point seven • bullet point eight
so that it rather looks like this:
• bullet point one • bullet point two
• bullet point three • bullet point four
• bullet point five • bullet point six
• bullet point seven • bullet point eight
SO HOPING that someone can come up with an easy solution:)
Thank you in advance for your help,
ChristinePeter, thank you SO much...you actually answered my question and a big "DUH" just hit me like a hammer The text is simply being pasted in from a spreadsheet and I am manually adding bullet points using OPTION-8 kb shortcut (on a mac). Doing bullets the regular way (via the "Bullets and Numbering" accessible from the Paragraph panel) will not work in this case since they are inline.
All I had to do was insert a non-breaking space instead of a regular space after each bullet. I am able to do this very quickly tho' because I am pasting in the bullets along with the non-breaking space. Thank you SO MUCH:) -
How to Prevent/Control doing MIGO twice for the same material
Dear
The stores clerk by mistake has done MIGO twice for the same material. Is there any way to prevent/check the same in standard SAP? Vendor does not send the invoice/delivery challan to stores directly. Invoice is sent to Finance Department.
RegardsIt is very unlikely that you could spec an ABAP solution to this problem.
You may be able to spec an exit that would prevent GR being carried out for a PO Item twice on the same day. But that is not infallible, as there may be valid circumstances when you would need to carry out two GR's for a PO item on the same day. A fix for a small problem that creates a large one is not a good fix.
You also need to ask how big this problem really is - if a user duplicates a goods receipt every once in a long while then you probably do not have a serious problem.
Rather than look at a system fix for the error, I would suggest that you look at what you can do to improve the physical process. -
How to prevent middle mouse click to move the cursor but still poaste the clipboard ?
This is a linux only issue.
When i'm typing a text editing box, i use the select text/middle click gesture to copy/paste text.
But the middle click not only paste the selected text but move the cursor at the actual mouse position before.
I don't want this behavior, because :
1. I work a lot with vim, where you don't mouve the cursor using the mouse, so i must change my habit when i'm using firefox.
2. When i middle click, event if i put the mouse in the right place, i might mouve it a bit and the text will be pasted on the wrong place
I've been looking in the about:config and the only related option is
middlemouse.paste;
If i put it to false, the middle click button does not mouve the cursor, nor does it paste.
Any idea how to achieve that ?I do not find the cursor moving on me if I use middle-click to paste text or url that is in that I highlighted into clipboard. Whether I used my Logitech MX510 or the T-CH!!/T-CL13 trackballs that I use now.
The right-click and copy selection then right-click and paste to paste contents where Caret is method can be more precise though.
'''FredMcD''', if you have not used Linux then maybe you should not be replying to questions that are Linux specific. Same with Mac OSX. -
How to prevent user password being reset to the same password?
Hi,
As you all know, domain admin has the power to reset user password. Let's think of the following scenario:
if an admin lets a user reset his password to use the same string, this action means he could nullify company policy on password which requires user's last N passwords being recorded in the history.
We could very well imagine that the admin reset his own personal password in order to bypass company policy.
I have asked partner forum to see if there's a way to prevent such thing, but the reply I got is "No".
I wanted to know if anyone of you have any idea to prevent such thing from happening?
Or if it's possible to get the hash value of users past N password to see if he's always using the same password?
Thanks in advance for your ideas.Good rules is better alternative to complex policy.
Combine password history with time interval between changes.
Regards
Milos
You don't understand what I mean.
He knows exactly what you mean.
check out this link below:
http://technet.microsoft.com/en-us/library/cc757692%28v=ws.10%29.aspx
Enforce password history
The Enforce password history policy setting determines the number of unique new passwords that must be associated with a
user account before an old password can be reused .
The possible values for this Group Policy setting are:
A user-defined number from 0 through 24.
Not defined.
Discussion
Password reuse is an important concern in any organization. Many users want to reuse the same password for their account over a long period of time. The longer the same password is used for
a particular account, the greater the chance that an attacker will be able to determine the password through brute force attacks. If users are required to change their password, but nothing prevents them from using the old password or continually reusing a
small number of passwords, the effectiveness of a good password policy is greatly reduced.
Specifying a low number for Enforce password history allows users to continually use the same small number of passwords repeatedly. If you do not also set Minimum
password age, users can change their password as many times in a row as necessary in order to reuse their original password.
If you set Enforce password history to a number greater than zero, users must come up with a new password every time they are required to change their old one. This
improves security, but it can increase the risk that users will write down their passwords so they do not forget them.
If you set the value to the maximum of 24, it helps to ensure that vulnerabilities caused by password reuse are kept to a minimum.
For this policy setting to be effective in your organization, configure Minimum password age so that you do not allow passwords to be changed immediately. Enforce
password history should be set at the level that combines a reasonable maximum password age with a reasonable password change interval requirement for users.
Location
GPO_name\Computer Configuration\Windows Settings\Security Settings\Account Policies\Password Policy\
Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
IT Stuff Quick Bytes -
How to prevent more than one login for the same username
I am trying to create a centralized login/logout for my J2EE application, i.e application level security in order to keep track of the users that login and logout to/from application. I need that in order to know which users have logged out before their sessions expire. Is there an easier way (possibly on the server level) to accomplish this.
How is your centralized authentication service hooked up, through a custom realm?
Unfortunately there is no notification mechanism of logout events currently. Partly due to the fact that while the a logout is sometimes explicit (session invalidated or expired) it is also at times implicit (if there is no session, the logged in user silently disappears at the end of a request).
P.S. If you're only looking to keep track of login and access events (and not modify the behavior), the audit logging provides this information directly.
Maybe you are looking for
-
Adobe Reader XI - dynamic PDF Form and the E-Mail Dialog
Hi Community, I have a dynamic PDF Form and we use the E-Mail function to save the XML-Data to local harddrive. That works until Adobe Acrobat Reader 10.1.2. But with the Adobe Reader XI (11.0.4) the E-Mail Dialog has changed so I am One is forced to
-
Tax_recovery_rate column mapping in R12 tax tables
Hi , Can anyone pleasehelp me out. I am trying to remediate a view which originally in 11i was consisting of the following columns: org_id, tax_id, name, tax_rate, tax_recovery_rate, offset_tax_code_id, start_date, inactive_date end_date, enabled_fla
-
Why is the macintosh hd icon flashing?
Hello all, Weird thing started happening last night: the "Macintosh HD" icon on my Macbook Air started flashing on my desktop. It happens at exact 1 minute intervals - the icon will disappear for a quarter second then reappear. I still have full func
-
Cartridge Error: Refer to advice documentation to troubleshoot
Hello every one, I have this message comes up on the printer screen ( Cartridge Error : Refer to advice documentation to troubleshoot) i have done all the steps from the manual but the problem still exiting. Please need your advices. Thanks a lot.
-
I am under the impression that I no longer have fax (send/receive) capability now that I have switched to a DSL internet connection. I think I can only fax when using my old built in modem with regular phone jack. Is this correct? If anybody knows ho