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

  • SEARCH
  • Home
  • 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 6549351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:04:56+00:00 2026-05-25T12:04:56+00:00

I am developing a program which has three JTextBox which my users can enter

  • 0

I am developing a program which has three JTextBox which my users can enter and check some text for right rule.

So I want add a ablitiy to my program that my users can add or remove their favorite text to a Favorite List and can create folder in Favorite list and put some text in it, such as Bookmark library in FireFox or other web browser.

I want use RandomAccessFile to save favorite list as a favorite source.

How do I implemet it? is there beter way to implement it? is there beter way from RandomAccessFile?

Can any one help me?

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-25T12:04:57+00:00Added an answer on May 25, 2026 at 12:04 pm

    There could be lots of approaches. It all depends on what you want to achieve.

    1. Consider using Java serialization mechanism. You can serialize a collection of bookmarks to a file. When your app starts, you deserialize it, and get the same collection data.

      The advantages are: simple and easy implementation. The disadvantages: you can’t look through stored bookmarks in a text editor or something. The same class hierarchy is to be used to load the serialized version.

    2. XML is human-readable and provides easy interoperability. Other applications would be able to handle your list of bookmarks.

      It usually takes more resources to parse the XML and load it to memory and then to create the internal object structures. Though you can use the DOM to traverse the tree all the time, it could be not as convenient as the internal data structure using specialized classes.

    3. Random Access Files work best with fixed record sizes. It means all the fields of your bookmarks must be fixed-length. For example, the name of a bookmark is String. When you write it out to a file, you store it like an array of a fixed length, let’s say 20. This automatically implies that if users give a bookmark the name which length is greater than 20, the remaining characters would be lost.

      It is also easy to implement with the caveats above. Of course the records could be of variable length, but then you lose the random access to file because you cannot easily calculate the position of a specific record.

    Firefox uses JSON for storing bookmarks and allows exporting to HTML. You can explore this too.

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

Sidebar

Related Questions

I'm developing a program which allows users to input some information which then gets
I am developing some program in C# which will send the mail using outlook
I am developing a windows CE program for the Motorola MC9090G which is running
I'm developing a program that would require huge amount of memory, and I want
I'm developing a program that makes some floating points calculations. Is there any way
I'm developing a TypeTranslator class which has a method Type TranslateType(Type type) . This
I'm developing a program which executes a program using execvp. It needs to capture
did you heard about some of network card which support checksum offload functionality has
I am developing an application, in which I want to redirect the output (progress
I am currently developing a C# application which has got it's own logging. When

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.