Skip to content

a lightweight Java application designed to fetch and display content from Wikipedia in a user-friendly interface. Built with Java Swing, it offers a straightforward way to search Wikipedia articles by entering queries into a text field and viewing the results directly within the application.

Notifications You must be signed in to change notification settings

JeninSutradhar/SimpleWikiBrowserJava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Simple Wiki Browser

The Simple Wiki Browser is a lightweight Java application designed to fetch and display content from Wikipedia in a user-friendly interface. Built with Java Swing, it offers a straightforward way to search Wikipedia articles by entering queries into a text field and viewing the results directly within the application. This document outlines the features, usage, and setup instructions for the Simple Wiki Browser.

browserjava

Features

  • Dark Theme Interface: A sleek, polished black theme that is easy on the eyes, especially during extended usage periods.
  • Word Wrap: Enhanced readability with word wrap in the result display area, ensuring that all text remains within the viewing pane without horizontal scrolling.
  • Simple Search Functionality: Enter a search term, and the browser fetches the corresponding Wikipedia page, displaying the first paragraph of content for quick reading.

Usage

  1. Starting the Application: Run the SimpleWikiBrowser class. The application window will open with a search field at the top and a large display area below it.
  2. Performing a Search: Type your search query into the text field and click the "Search" button or press Enter. The application will retrieve the first paragraph of the Wikipedia article related to your query.
  3. Viewing Results: The result area below the search field will display the fetched content. The text is presented with word wrap enabled, ensuring all content is easily readable within the window.

Setup Instructions

To set up the Simple Wiki Browser on your system, follow these steps:

  1. Prerequisites:

    • Ensure you have Java Development Kit (JDK) installed on your system. The application is compatible with JDK 8 and newer versions.
    • Basic knowledge of Java and Swing is helpful for understanding and modifying the code.
  2. Download the Source Code:

    • Clone the repository or download the source code to your local machine.
  3. Compile and Run:

    • Open a terminal or command prompt.
    • Navigate to the directory containing the SimpleWikiBrowser.java file.
    • Compile the code using the Java compiler: javac SimpleWikiBrowser.java.
    • Run the compiled class: java SimpleWikiBrowser.

Customization

The application can be customized in various ways, including modifying the theme, adjusting the size and layout, or enhancing the search functionality to include more detailed Wikipedia content. Feel free to explore the code and make adjustments as needed to suit your preferences.

Contributing

Contributions to the Simple Wiki Browser are welcome! Whether it's bug fixes, feature additions, or improvements to the documentation, your help is appreciated. Please feel free to fork the repository, make your changes, and submit a pull request.

License

The Simple Wiki Browser is open-source software licensed under the MIT License. See the LICENSE file for more details.


This README provides a basic overview of the Simple Wiki Browser project. For more detailed information or assistance, please refer to the source code comments or contact the project maintainers.

About

a lightweight Java application designed to fetch and display content from Wikipedia in a user-friendly interface. Built with Java Swing, it offers a straightforward way to search Wikipedia articles by entering queries into a text field and viewing the results directly within the application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages