Java Swing is a GUI widget toolkit for Java that builds upon the Abstract Window Toolkit (AWT) to provide a more sophisticated set of GUI components. It includes common widgets like buttons, text fields, labels and menus. Components in Swing are lightweight objects that can be easily rendered on screen. Containers hold and organize other components in a hierarchy. The most commonly used containers are JFrame, JPanel and JWindow. JFrame is Swing's version of a top-level window with options to close or hide. JTextField allows editing single-line text while JLabel displays read-only text. An example program demonstrates adding components like labels, text fields and buttons to a JFrame and handling button click events
SWING USING JAVA WITH VARIOUS COMPONENTSbharathiv53
This presentation contains the following topics.,
Introduction to Swing; MVC; Events and Listeners; Adapters; Text
Components; Look and feel; Swing Components; JTextField, JLabel,
JButton, JScrollBar, JSlider, JProgressBar, JList, JComboBox; Containers
and Frames; Layout Managers; Menus and Toolbar; Tables and Trees.
This Lecture covers three topics very simply, jtextarea, jframe and jscrollpane with the help of code and each line of code explain for more understanding. It is much easier for beginners.
SWING USING JAVA WITH VARIOUS COMPONENTSbharathiv53
This presentation contains the following topics.,
Introduction to Swing; MVC; Events and Listeners; Adapters; Text
Components; Look and feel; Swing Components; JTextField, JLabel,
JButton, JScrollBar, JSlider, JProgressBar, JList, JComboBox; Containers
and Frames; Layout Managers; Menus and Toolbar; Tables and Trees.
This Lecture covers three topics very simply, jtextarea, jframe and jscrollpane with the help of code and each line of code explain for more understanding. It is much easier for beginners.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Normal Labour/ Stages of Labour/ Mechanism of LabourWasim Ak
Normal labor is also termed spontaneous labor, defined as the natural physiological process through which the fetus, placenta, and membranes are expelled from the uterus through the birth canal at term (37 to 42 weeks
Safalta Digital marketing institute in Noida, provide complete applications that encompass a huge range of virtual advertising and marketing additives, which includes search engine optimization, virtual communication advertising, pay-per-click on marketing, content material advertising, internet analytics, and greater. These university courses are designed for students who possess a comprehensive understanding of virtual marketing strategies and attributes.Safalta Digital Marketing Institute in Noida is a first choice for young individuals or students who are looking to start their careers in the field of digital advertising. The institute gives specialized courses designed and certification.
for beginners, providing thorough training in areas such as SEO, digital communication marketing, and PPC training in Noida. After finishing the program, students receive the certifications recognised by top different universitie, setting a strong foundation for a successful career in digital marketing.
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
1. SWING
Created by – Samyak Jain (MCA/25014/2022)
Abhishek Ahawlat (MCA/25017/2022)
submitted to – Santosh Kumar Sir
2. What is Java Swing?
Java Swing is a part of Java Foundation Classes(JFC)
that is used to create window-based applications. It is
built on top of AWT(Abstract Window Toolkit) API and
entirely written in Java.
The javax.swing package provides classes for java swing
API such as
Jbutton,JTextField,JTextArea,JRadioButton,Jcheckbox
,Jmenu,JColorChooser etc.
4. Components and Containers
The Components class is the superclass of all components.
Swing components are derived from the JComponent class.
A Containers is a special type of component that is designed to
hold other components.
The most commonly used containers are JFrame, JPanel and
Jwindow etc.
Important Method of Component class
• Void add(component c) // used to add swing component to a container
• Void setSize(int width,int height) //use to set the size of the container
• Void setLayout(Layout Manager m) //use to set the Layout
• Void setVisible(Boolean b) //to make the frame visible on the window.
6. JFrame
• An extension of java.awt.Frame class ,it is the Swing’s version of applet.
• JFrame has the option to hide or close the window with the help of
setDefaultCloseOperation(int) method.
• Example: output :
import javax.swing.*;
public class NewClass
{
public static void main(String args[])
{
JFrame jf = new JFrame("Swing Example");
jf.setSize(300,300);
jf.setVisible(true);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}
7. Another way of doing it…
import javax.swing.*;
public class NewClass extends JFrame
{
public NewClass() {};
public NewClass(String s)
{
super(s);
}
public static void main(String args[])
{
NewClass jf = new NewClass("Swing example");
jf.setSize(300,300);
jf.setVisible(true);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
8. JTextField
The object of a JTextField class is a text component that allows the editing of
a single line text. It inherits JTextComponent class.
JLabel
The object of JLabel class is a component for placing text in a container. It is
used to display a single line of read only text. The text can be changed by an
application but a user cannot edit it directly. It inherits JComponent class.
9. Swing Example
import javax.swing.*;
import java.awt.event.*;
public class NewClass extends JFrame
{
JLabel l1,l2,l3,l4;
JTextField t1, t2;
JButton b1;
public NewClass() {};
public NewClass(String s)
{
super(s);
}
public void setComponents()
{
l1 = new JLabel("Addition of two Numbers ");
l2 = new JLabel("First Number");
l3 = new JLabel("Second Number");
l4 = new JLabel();
t1 = new JTextField();
t2 = new JTextField();
11. class Handler implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
int a = Integer.parseInt(t1.getText());
int b = Integer.parseInt(t2.getText());
int s = a+b;
l3.setText("Result is "+s);
}
}
public static void main(String args[])
{
NewClass jf = new NewClass("Swing example");
jf.setComponents();
jf.setSize(500,500);
jf.setVisible(true);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}