Code Monkey home page Code Monkey logo

jeninsutradhar / simplewikibrowserjava Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 10 KB

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.

Java 100.00%
browsers java java-swing-application java-swing-gui swing swing-gui wikipedia wikipedia-api

simplewikibrowserjava's Introduction

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.

simplewikibrowserjava's People

Contributors

jeninsutradhar avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.