0% found this document useful (0 votes)
9 views2 pages

Java Student Portal GUI Example

The document creates a Java GUI application with a menu bar and menus. It imports necessary classes and creates a frame with a title and icon. It then creates menus and menu items to populate the menu bar with options like messages, attendance, exams, reports and billing.
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)
9 views2 pages

Java Student Portal GUI Example

The document creates a Java GUI application with a menu bar and menus. It imports necessary classes and creates a frame with a title and icon. It then creates menus and menu items to populate the menu bar with options like messages, attendance, exams, reports and billing.
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

import [Link].

Color;
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];

class Myframe extends Frame {


Myframe() {
setBackground([Link]);
setVisible(true);
setSize(500, 400);
}
}

class exp {
public static void main(String args[]) {
Myframe f = new Myframe();
[Link]("Student Portal");
[Link](new FlowLayout());

Image icon=[Link]().getImage("C:\\Users\\user\\
Desktop\\[Link]");
[Link](icon);

MenuBar mb = new MenuBar();


[Link](mb);

Menu m1, m2, m3, m4, m5;


m1 = new Menu("Message");
m2 = new Menu("Attendance");
m3 = new Menu("Exam Schedule");
m4 = new Menu("Report");
m5 = new Menu("Billing");

[Link](m1);
[Link](m2);
[Link](m3);
[Link](m4);

[Link](m5);

MenuItem mf1, mf2, mf3, mf4, mf5;


mf1 = new MenuItem("Notifications");
mf2 = new MenuItem("Weekly Contests");
mf3 = new MenuItem("Holidays");
mf4 = new MenuItem("Festivals");
mf5 = new MenuItem("Others");

[Link](mf1);
[Link](mf2);
[Link](mf3);
[Link](mf4);
[Link](mf5);

MenuItem me1, me2;


me1 = new MenuItem("Present Status");
me2 = new MenuItem("Absent Status");

Menu sm = new Menu("Tracker");


MenuItem i1 = new MenuItem("Weekly Tracker");
MenuItem i2 = new MenuItem("Monthly Tracker");
[Link](i1);
[Link]();
[Link](i2);
[Link]();

[Link](me1);
[Link](me2);
[Link](sm);

MenuItem md1, md2, md3, md4;


md1 = new MenuItem("Class test");
md2 = new MenuItem("PA-1");
md3 = new MenuItem("PA-2");
md4 = new MenuItem("Annual Exam");

[Link](md1);
[Link](md2);
[Link](md3);
[Link](md4);

MenuItem mc1, mc2, mc3, mc4;


mc1 = new MenuItem("Class test");
mc2 = new MenuItem("PA-1");
mc3 = new MenuItem("PA-2");
mc4 = new MenuItem("Annual Exam");

[Link](mc1);
[Link](mc2);
[Link](mc3);
[Link](mc4);

MenuItem mb1, mb2, mb3;


mb1 = new MenuItem("Fee Details");
mb2 = new MenuItem("Payment");
mb3 = new MenuItem("Balance");

[Link](mb1);
[Link](mb2);
[Link](mb3);

}
}

You might also like