Java GUI cursor position in the window, mixed text editable and uneditable
Hello,
I primarily program in VBScript for Client Acces; but, I wanted to start creating user interfaces with Java.
VBScript is not compiled on the private drive and anyone can learn how to do a program from well documented code; however, a compiled .class Java program does not have to be sent with the .java source code to work. The compiled program is unreadable by others and uneditable by others. Although I can do what I want with ActiveX programming, I want to use Java instead because it will prevent others from knowing how I program my solutions.
The NetBeans IDE allows for controls to be dragged and dropped onto a screen; however, I want to know how to have uneditable and editable fields on the same page while allowing the cursor to be anywhere on the page and report its cursor position just as it is reported in Client Access.
Does Java support the .Net Framework; or, does it have its own objects and methods to pull the cursor position in a window? I need the row and column, not the x and y coordinates.
Java How To Program, Sixth Edition, has some deprecated code examples and I found working solutions from the Java Almanac. However, I did not see an example of this sort.
What I will do once I know how to track the cursor position in the window is generate a Java based training module. Every computer at my workplace has Java runtimes installed, none of them have the .Net Framework installed. Java has a lot of tools that allow me to replace all my ActiveX programming with Java programming.
Have a great Day!
Jesse Grune.
textArea.getCaret().getDot();
or the shorter
textArea.getCaretPosition();
Similar Messages
-
How to get the cursor position in the text edit box?
Hi, all.
I want to get the cursor position in the text edit box
to insert some data.
But I don't know how to get.
Can someone give me some advice?
BestRegard.
Miya.Hi Miya,
Write your own textSelectionSuite for this.
and use ITextTarget->GetRange() function.
Thanks and Regards,
Yopangjo. -
[ADF Faces] set cursor position to the first column input text in ADF table
How do i set the cursor position to the first column input text when i Insert a blank row?
My idea is to implement using javascript. document.setfocus() but how do i do it from the backing bean code? or how do i install custom js to call document.setfocus()?
any ideas?
Message was edited by:
user450391Did you try by iterating the selected row?
Bind the table with the managed bean and then try with below code:
RichTable empTable;
RowKeySet selectedEmps = getEmpTable().getSelectedRowKeys();
Iterator selectedEmpIter = selectedEmps.iterator();
DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding empIter = bindings.findIteratorBinding("EmpView1Iterator");
RowSetIterator empRSIter = empIter.getRowSetIterator();
while(selectedEmpIter.hasNext()){
Key key = (Key)((List)selectedEmpIter.next()).get(0);
Row currentRow = empRSIter.getRow(key);
System.out.println(currentRow.getAttribute("Ename")); -
Cursor position in the mx:TextInput
Hi guys, does anyone knows how to set the exact cursor
position in the mx:TextInput ? For example I want to set cursor
after the second symbol. Is that possible ?<textinputID>.setSelection(position, position);
for example, if i want my cursor in the second position of a
textinput named "nameField":
nameField.setSelection(1,1);
*used 1 because index starts at 0 -
Can Java be used to manipulate the Windows registry?
Can Java be used to manipulate the Windows registry? If so, can someone point me to some examples?
Thanks!There is no supplied capability to do this, because the registry is Windows platform specific.
It might be possible by making the call through a native Windoze app. -
i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???
capriz wrote:
i have just updated my old 3GS ...
To what... iOS 7 is Not supported on the 3 GS -
When composing an email in Mac Mail I've noticed a small but very irritating bug: pressing the spacebar after typing an apostrophe in a word, e.g. "we're", the cursor moves to the left i.e. backwards, and not to the right, effectively deleting a space and not creating one.
Any ideas?I just recreated this problem on my iMac (wired KB, no wireless KB) by changing Mail > Preferences > Composing > Spellcheck from "as I type" to "never". Then type a contraction ending in 're and the space bar causes the cursor to jump back as others have stated, to the spot 'r|e
Next, I went into System Preferences > Keyboard > Text, and turned off "use smart quotes" and the problem went away again.
From this point (smart quotes off, spell checking never), if I turn Smart Quotes ON, the problem returns.
The problem is dependent on the state of both settings.
The spacebar in Mail "works" if I have either of the following setting combinations:
Keyboard: smart quotes OFF, Mail: check spelling ANY SETTING
Keyboard: smart quotes ON, Mail: check spelling AS I TYPE
Other combinations FAIL
Keyboard: smart quotes ON, Mail: Check spelling NEVER
Keyboard: smart quotes ON, Mail: Check Spelling WHEN I CLICK SEND
Looks to me like there's a bug in Mail > Preferences > Check spelling > NEVER and WHEN I CLICK SEND that interacts badly with Keyboard > Smart quotes ON.
Thanks.
Todd Smithgall -
I put an object and/or a text box on a page and then cannot select it - the Text cursor (not pointer, just the text cursor shows) is put on the object or text box and nothing happens. It is so frustrating! I then open up Everweb and the same thing, I create an object and then try and elect it to make it bigger etc and cannot. I know it must be something system wide as it happens in apps other than Pages.
I put an object and/or a text box on a page and then cannot select it - the Text cursor (not pointer, just the text cursor shows) is put on the object or text box and nothing happens. It is so frustrating! I then open up Everweb and the same thing, I create an object and then try and elect it to make it bigger etc and cannot. I know it must be something system wide as it happens in apps other than Pages.
-
The problem is this: the last time i ran the windows, but he hangs and died (can not run further the logo). now i can not load not windows, not maс! how to be, what to do???
can any body help me, plz!!
-
Where is the Inspector Window for Text Edit for Office Org.
Where is the Inspector Window for Text Edit for Office Org. My tool bar does not look like this. It's only one line with font, Style, size, font color, BIU, alignment, line spaces and indentation options. The help says that this is how I adjust my page margins. That is my goal.
ThanksThe name field must match that found in the email confirmation. Even a missing Mr. will cause it to fail.
-
I am a creative cloud member and just download the window in my mac and format all things that I had in mac. How can I redownload the creative cloud in the window portion?
WOrks no different - download the CC app and take it from there.
Mylenium -
How can I fix error code 131:4? Licensing for this product stopped working. I have windows vista home edition and CS4 Design Premium. I downloaded licensing zip file for windows but I can't seem to get it to launch. Look forward to help from anyone
Steve,
I appreciate your answer. While it might work, I'm a bit hesitant to remove the other programs as a possible solution since they are all currently working.
With Acrobat 9 Pro failing with the OS 10.7 upgrade, I'm hoping that there is a less severe solution.
Since the trigger appears to be 10.7 and may have something to do with the discontinued support of Rosetta, I could be spending a few hours working on a reinstall without a change. Yes, it might work. The "might" is the part that makes me hesitate.
Is anyone else out there on OS 10.7 and running Acrobat 9 Pro? Any issues with anyone else?
Thanks Steve. I do appreciate your offering a solution. I may end up trying it if nothing else comes together.
Mark -
How can I remove this new Kitkat upgrade and go back to what I had. I cannot deal with the color on text screen and the keyboard is terrible. Can take back all the stupid pictures they added for texting. Just need it back to what it was.
Hasn't any business ever heard of the term.
IF IT AINT BROKE DON'T FIX IT. -
I am working in text edit and cannot open my file. Error message says it is in the wrong format, truncated or corrupted. what to do?
Try opening Disk Utility in your Applications-Utilities folder and repair permissions.
-
when i try to download a file from the internet it starts to download but when its finished it opens up in the app "text edit" and it says this file cannot open in DOS mode.
Can anyone help?It sounds like perhaps the file doesn't have an extension that the system recognizes. Is this all files, or just one specific one, and if so, which? What is the name (and extension, if it has one) of the downloaded file? What kind of file do you *expect* it to be? (PDF, or whatever). Renaming a file with the appropriate extension can often fix that kind of problem.
Matt
Maybe you are looking for
-
Podcast feed validated but can't download or listen to the podcast
new to submitting podcast to iTunes. I used the feedvalidator.org to validate the RSS feed and tested using Subscribe to podcast in iTunes. I can see the podcast but cannot download/get/play the episodes. heres the feed: http://www.imf.org/external/i
-
WLS JMS bridge not forwarding mesages
Hi All, I want to send messages from a queue in the source weblogic domain to the target queue in another weblogic domain. Both the domains are weblogic server. On the source server agile PLM is deployed. For this communication I established JMS brid
-
Many dead cmd.exe on Windows 2008 R2 Oracle 11.2.0.2 RAC Installation
After successful installation of a two node Oracle RAC 11.2 on Windows 2008 R2 we investigate a daily growing number of cmd.exe all running the following statement: *C:\Windows\system32\cmd.exe /K D:\oracle\cluster\11.2.0\grid\bin\cluvfy comp healt
-
UCSM via SSH but not HTTP(s)
I cannot load the webpage for my UCS via the cluster IP which was working before a full power down. I can SSH to the cluster IP and see things, but the web site and the GUI aplpication no longer work. I tried a second power cycle to no avail and I h
-
Suddenly, iTunes won't start. HELP!
I recenlty upgraded my MacBook OS to Lion, and now iTunes won't start up. I got the following message: The file "iTunes Libarary.itl" cannot be read because it was created by a newer version of iTunes. Would you like to download iTunes now?" I then