This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Software Teaming: A Mob Programming, Whole-Team Approach and have Woody Zuill and Kevin Meadows on-line!
See this thread for details.

Seema Sharma

Ranch Hand
+ Follow
since May 24, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Seema Sharma

Thanks. I have used DocumentFilter and it works.

Now my scenario is when i do data validation, navigation to other screens should not be allowed unless valid input is entered in these textfields.

My window has Jtabbedpane which has 3 tabs. Above mentioned Jformattedtextfields is available in one of the tabs. If these textfields has: Duplicate value, empty or invalid data, validation is done and message is displayed.

If one of the text field has duplicate value/empty/invalid data and cursor is still available in the textfield and one of the tab panel is selected, then the validation message is displayed on that tabbed panel.

I need to restrict navigation and display this validation message on the panel where these textfields are available.

Please help me to resolve this issue.


Regards,
Seema

13 years ago
Hi,
The problem is to avoid the duplicate text of 1st jformattedtextfield to be entered in 2nd jformattedtextfield. i need to display meesage if two textfields has same text.

I am able to provide the message only when focus lost event takes places. I want to display the message as soon the duplicate text is entered in jformattedtextfield. Please help me to proceed.


.

Thanks in advance,
Seema
13 years ago
Hi,
Please let me know why the below code returns -1 and throws arrayindexoutofbound exception. This line of code is written in action listener for jcombobox.



Thanks in advance,
Seema
14 years ago
Hi,
Combo box is added to all cells of one of the column of jtable. My problem is that on selecting one cell to which combo box is added and changing its item, the same value is appearing on selecting the other cells of the column. Any help is highly appreciated. Thanks in advance.

Regards,
Seema
14 years ago
Campbell,
I am reading large number of HTML files, so exception may be because of that.
Same exception i found in the below link, but did not understand the solution.
Check URL

Please help in uderstanding it.

Thanks in advance,
Seema
14 years ago
Exception is shown at line editorPane.read(reader, htmlDoc);

Thanks in advace,
Seema
14 years ago
It show exception at line editorPane.read(reader, htmlDoc);
Please find the stack trace below:


Do i need to use HTMLEditorKit.Parser for reading. I tried using the parser.read() method, but shows errors. Tried the bow code:

when above code is used for reading HTML, search logic itself doesn't work and same java.lang.ArrayIndexOutOfBoundsException: 88 exception as above occurs, this time at parser.parse(reader, callback, true);

Thanks for reading. Any help is highly appreciated.

Regards,
Seema
14 years ago
Hi,
I am searching text from HTML and finding file names. Placing those names to JList. Searching is taking place properly. but java.lang.ArrayIndexOutOfBoundsException: 88 is thrown.

Find the code below:


Please let me know why this exception occurs:


Thanks in advance,
Seema
14 years ago
Whats happens is on searching the text for the first time, Jlist is updated properly. When new search text is entered in textfield and button is clicked, the following error comes up:


Please help me in knowing what went wrong. Thanks in advance.

Regards,
Seema
14 years ago
I am doing Help page.A Text is entered in textfield and on pressing search button, it searches the text in HTML document & adds HTML document name to jlist.


Please check my code which throws Runtime exception at editor.read(reader, htmlDoc) and let me know what went wrong.


Thanks,
Seema
14 years ago
AbstractListModel is not showing any clear method. Please let me know how to clear the list.

Thanks in advance,
Seema
14 years ago
Hi,
Please let me know how to update JList with new elements. I have used the below code & it gives ClassCastException.




Thanks in advance,
Seema
14 years ago
Hi,
I am working for creating help page. After search is done, i get the required texts which are placed in Jtextarea. On clicking each text, respective information page should be displayed in JEditorpane.
Please help me in knowing which listener i can use to click each text.

I have used document listener but not performing what i require.


Please correct me.

Regards,
Seema
14 years ago
I want to read HTML file and based on the search text entered , i need to find that text in the HTML file.

Yes, i am trying to read the HTML file stored locally.
First step i did is reading the HTML file. The program is below:



But exception occurs "java.io.FileNotFoundException". Please help me.

Thanks,
Seema
14 years ago
Hi,
Please let me know how to search text in HTML using swings.

Regards,
Seema
14 years ago