Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6896435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:02:32+00:00 2026-05-27T07:02:32+00:00

I should want to implement a search functionality in a JTextPane. I already use

  • 0

I should want to implement a search functionality in a JTextPane. I already use swingx, and I see Searchable interface, with a JXEditorPane.DocumentSearchable. I suppose it’s for JXEditorPane.

But I use a JTextPane. Is there some exemple with that ?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:02:33+00:00Added an answer on May 27, 2026 at 7:02 am

    If you want to reuse the search components provided by SwingX (for example the JXFindBar) for your JTextPane it is sufficient to create an implementation of the Searchable interface which works against your JTextPane. This Searchable instance can then be passed to the JXFindBar.

    The JXEditorPane.DocumentSearchable is more or less what you want since it works against a Document (see source code) so starting from this source code you should have your own implementation ready in a jiffy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to implement a derived class that should also implement an interface, that
If I want to implement seek() to complete the SeekableIterator interface, should I internally
I want to implement advance search functionality so that if a particular text is
When I want to implement ViewModel I should cut everything c# code from my
I want to implement forms authentication on an ASP.NET website, the site should seek
I want to implement the Google custom search API with Greasemonkey, and so far
I want to implement a search in my Android application. In this page, first
I prepare a WPF project, where I want to implement a more complex search.
I want to implement something exactly like Changing the Default Text in the Search
I am trying to implement Listview with search functionality, in which i am successful

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.