0% found this document useful (0 votes)
0 views

AJP MICRO-AA-2

The document is a microproject report on a Blog Publishing Platform created by Anjali Yadgiri Durgam for the academic year 2024-2025. It outlines the project's objectives, system design, methodology, implementation details, and conclusions, emphasizing user-friendly features for creating and managing blog posts. The platform utilizes Java AWT and Swing for the GUI and MySQL for database management, enabling users to securely sign up, log in, and publish their blogs.

Uploaded by

Anjali Durgam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

AJP MICRO-AA-2

The document is a microproject report on a Blog Publishing Platform created by Anjali Yadgiri Durgam for the academic year 2024-2025. It outlines the project's objectives, system design, methodology, implementation details, and conclusions, emphasizing user-friendly features for creating and managing blog posts. The platform utilizes Java AWT and Swing for the GUI and MySQL for database management, enabling users to securely sign up, log in, and publish their blogs.

Uploaded by

Anjali Durgam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Maharashtra State Board of Technical Education,

Mumbai

Government Polytechnic, Solapur

DIPLOMA IN COMPUTER TECHNOLOGY

ACADAMIC YEAR 2024-2025

A MICROPROJECT REPORT ON
Blog Publishing Platform
Submitted by: -
Roll Enrolment Number Name
Number
04 2200150094 Anjali Yadgiri Durgam

Submitted to: - Ravindra Gangundi


INDEX

Sr.No. Title Page No.

1 Introduction 1

2 2
Objectives

3 System Design 3-4

4 5
Methodology

5 Implementation 6-9

6 Output 10-12

7 Conclusion 13
1. INTRODUCTION

The Blog Publishing Platform is a simple and user-friendly tool


for anyone to share their thoughts, ideas, or stories by writing blog posts.
Whether you're a beginner or an experienced writer, this platform
enables you to create an account, log in, and publish your posts with a
title and description.

You can edit or delete your posts at any time, giving you complete
control over your content. The platform makes it easy to share your
voice with the world while ensuring that your data remains safe and
secure. It's designed to focus on core features like writing, managing
posts, and accessing blogs, making the blogging process seamless for
everyone.

1
2. Objective of the Project:

 To create a simple Blog Publishing Platform GUI using Java AWT


and Swing.
 The platform lets users create, read, and manage blogs easily.
 To use event handling for making the interface interactive.
 Blogs are stored safely in a MySQL database.
 Users can view blogs without needing to log in.
 It allows users to write, edit, and delete their blog posts.
 Users can sign up and log in to their accounts securely.

2
3. System Design and Methodology:

 System Design:
Flowchart:

3
Frontend (GUI):
Created using Java Swing.
Screens:
 Main Screen: Buttons for Login, Sign Up, and View Blogs.
 Login Screen: Fields for Username/Email and Password.
 Signup Screen: Fields for Username, Email, Phone Number, and
Password.
 Blog Screen: Options to Add, Edit, Delete, and View Blogs.
 View Blogs Screen: Displays all blogs in read-only mode.

Backend:
 Language: Java (Advanced Java).
 Database Integration: MySQL using a DBConnection class for
connectivity.

Database:
 Users Table: Stores user details like username, email, phone, and
password.
 Posts Table: Stores blog posts with title, description, and linked user ID.

Tools:
 Editor: Notepad++.
 Database: MySQL.

4
 Methodology
1.Requirement Analysis:
Understand the project objectives, identify key features like user signup,
login, blog creation, editing, viewing, and database integration.
2.Planning and Design:
-Use Java Swing for the graphical user interface (GUI) and MySQL for
storing user and blog data.
-Plan database tables for users and blogs, ensuring proper relationships and
scalability.
3.Development:
-Frontend Development: Use Java Swing components to create visually
appealing frames like MainFrame, LoginFrame, SignupFrame, BlogFrame,
and ViewBlogsFrame.
-Backend Development: Write Java code to handle user authentication, blog
operations, and interactions with the database using JDBC.
-Database Setup: Create and populate the MySQL database with tables for
users and blogs.
4.Integration:
-Link the frontend and backend through proper event handling and database
connectivity.
-Ensure all frames are interconnected for smooth navigation.
5.Testing and Debugging:
-Test individual components (unit testing) and the entire system (integration
testing).

5
-Identify and resolve bugs to improve performance and reliability.

4. Program Code
import javax.swing.*;
import java.awt.*;

public class MainFrame extends JFrame


{
public MainFrame()
{

JLabel title = new JLabel("BLOG PUBLISHING PLATFORM",


JLabel.CENTER);
title.setFont(new Font("Arial", Font.BOLD, 24));
title.setBounds(50, 20, 500, 40);
add(title);

JPanel txt = new JPanel();


txt.setBackground(new Color(200, 200, 220));
txt.setLayout(null);
txt.setBounds(50, 70, 500, 150);

JLabel l1 = new JLabel("Welcome, ");

6
l1.setFont(new Font("Arial", Font.BOLD, 16));
l1.setBounds(10, 10, 500, 30);
txt.add(l1);

JLabel l2 = new JLabel("Publish a blog..? Sign Up.");


l2.setFont(new Font("Arial", Font.ITALIC, 14));
l2.setBounds(10, 40, 500, 30);
txt.add(l2);

JLabel l3 = new JLabel("Already have an account, login.");


l3.setFont(new Font("Arial", Font.ITALIC, 14));
l3.setBounds(10, 70, 500, 30);
txt.add(l3);

JLabel l4 = new JLabel("If you are a user, click on the view button.");
l4.setFont(new Font("Arial", Font.ITALIC, 14));
l4.setBounds(10, 100, 500, 30);
txt.add(l4);

add(txt);

JButton loginButton = new JButton("Login");


loginButton.setFont(new Font("Arial", Font.BOLD, 14));
loginButton.setBackground(new Color(100, 200, 255));

7
loginButton.setBounds(50, 240, 100, 40);

JButton signupButton = new JButton("Sign Up");


signupButton.setFont(new Font("Arial", Font.BOLD, 14));
signupButton.setBackground(new Color(100, 255, 100));
signupButton.setBounds(160, 240, 100, 40);

JButton viewBlogsButton = new JButton("View Blogs");


viewBlogsButton.setFont(new Font("Arial", Font.BOLD, 14));
viewBlogsButton.setBackground(new Color(255, 200, 100));
viewBlogsButton.setBounds(270, 240, 100, 40);

loginButton.addActionListener(e -> {
new LoginFrame().setVisible(true);
dispose();
});

signupButton.addActionListener(e -> {
new SignupFrame().setVisible(true);
dispose();
});

viewBlogsButton.addActionListener(e -> {
new ViewBlogsFrame().setVisible(true);

8
dispose();
});

add(loginButton);
add(signupButton);
add(viewBlogsButton);
}

public static void main(String[] args)


{
MainFrame m1 = new MainFrame();
m1.setVisible(true);
m1.setTitle("Blog Publishing Platform");
m1.setSize(600, 400);
m1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
m1.setLayout(null);
}
}

9
5.

Output

10
11
12
Conclusion
Learning outcomes :-
 I have learned how to connect Java with a MySQL database for user and
blog data management.

 Gained experience in building dynamic applications using Java and SQL.

 Improved design skills by creating a user-friendly interface with Java


Swing.

 Gained knowledge of features like blog posting, commenting, and user


following.

Applications:-

The Blog Publishing Platform can be used for personal blogging, business
content, education, community engagement, professional blogging, creative
writing, niche websites, and news media. It allows users to share content,
interact with others, and build an audience.

13

You might also like