Home » Archives for Jyoti Jha » Page 2

Author Archives: Jyoti Jha

Jyoti is a tech enthusiast and is an avid programmer. She holds a post graduation degree in (M.Tech) Computer Science Engineering from Thapar Univeristy, Patiala, India. Post her graduate studies, she has worked in Software companies such as SLK Software and Aricent, India as Software Engineer in various projects primarily in the field of Requirement analysis and design, implementing new algorithms in C++ and JAVA used in ISDN network and designing databases and. She is inquisitive about socio economic reforms as well as advancement in technical fronts and keep herself informed with TED talks and various blogs.

Java AWT Graphics Example

Introduction The Java 2D API is powerful and complex. However, the vast majority of uses for the Java 2D API utilize a small subset of its capabilities encapsulated in the java.awt.Graphics class. This lesson covers the most common needs of applications developers. Most methods of the Graphics class can be divided into two basic groups: Draw and fill methods, enabling ...

Read More »

How to Create a Java Gui with Swing

In this post, we feature a comprehensive tutorial on how to create a Java Gui with Swing. There are two sets of Java APIs for graphics programming: AWT and Swing. You can also check this tutorial in the following video: Java Graphical User Interface Tutorial – Video 1. Java Gui tutorial with Swing – Introduction There are two sets of ...

Read More »

JAVA Swing Component Tutorial

Table Of Contents 1. Introduction 2. JAVA Swing Components 2.1 Setup 2.2 Using Java Swing Components 2.2.1 Using Top Level Containers 2.2.2 The JComponent Class 2.3 The JComponent API 2.3.1 Customizing Component Appearance 2.3.2 Setting and Getting Component State 2.3.3 Handling Events 2.3.4 Painting Components 3. Output 4. Download   1. Introduction Swing API is a set of extensible GUI ...

Read More »

JAVA Swing Menu Example

1. Introduction A menu provides a space-saving way to let the user choose one of several options. Other components with which the user can make a one-of-many choices include, combo boxes, lists, radio buttons, spinners, and tool bars. Menus are unique in that, by convention, they aren’t placed with the other components in the UI. Instead, a menu usually appears ...

Read More »

JAVA Swing Application Example

Swing is a GUI widget toolkit for Java. It is part of Oracle’s Java Foundation Classes (JFC) – an API for providing a graphical user interface (GUI) for Java programs. Swing was developed to provide a more sophisticated set of GUI components than the earlier Abstract Window Toolkit (AWT). JAVA provides a rich set of libraries to create Graphical User ...

Read More »

How to Create GUI in JAVA

1. Introduction There are two sets of Java APIs for graphics programming: AWT (Abstract Windowing Toolkit) and Swing. 1. AWT API was introduced in JDK 1.0. Most of the AWT components have become obsolete and should be replaced by newer Swing components. 2. Swing API, a much more comprehensive set of graphics libraries that enhances the AWT, was introduced as ...

Read More »

JAVA Swing List Example

1. Introduction JList is a swing component through which we can display the list of objects. This swing component allows user to select one or more elements. Lists can have many items, so they are often put in scroll panes. A separate model, ListModel, maintains the contents of the list. An array of objects can be easily displayed using the ...

Read More »

JAVA Swing Button Example

In this article we will learn different types of Button and how to create them. A button is a component that a user clicks to trigger a specific action.To add a cross platform button JButton class is used. The abstract class AbstractButton extends class JComponent .To create a button, you can instantiate one of the many classes that descend from ...

Read More »

JAVA Swing Table Example

1. Introduction In this example we will learn how to create a Table using JTable component in Swing. Data can be viewed or edited using the JTable component. JScrollPane is widely used to display the data. Model Implementation can be achieved using either AbstractDataModel or DefaultDataModel class. AbstractDataModel by default provides the implementation of most of the methods of TableModel ...

Read More »

JAVA Swing Form Example

With this example we are going to demonstrate creation of form using JAVA Swing. JAVA provides a huge set of libraries to develop a Graphical User Interface. Swing API is built on top of AWT API and are widely being used instead of AWT API. 1. Introduction There are few terminologies which are required to know before we proceed. Container: ...

Read More »