Home » Desktop Java

Desktop Java

Java Swing Key Binding Example

Places where KeyListener is used in order to map key input to some action, it is more convenient and preferred from usimg Keymap or InputMap and ActionMap combination instead. Using Keymap or InputMap and ActionMap combination, it is easier to map the action to a specific key stroke and thus key binding is achieved. 1. Introduction Most of the manipulations performed on text ...

Read More »

Java Swing JTextField Example

Swing offers us components through which users can type in text input. JTextField is one such component which is used to allow applications to accept single line input. Even user can go for standard operations like copy, paste, cut, delete. 1. Introduction Swing offers several components to ease user experience while typing in text or edit text. Different such are ...

Read More »

Java Swing GridLayout Example

In Swing, in order to arrange components in a form, dialog box etc. in user friendly manner layout manager is found to be very useful. There are several layout managers. GridLayout is such layout manager. 1. Introduction GridLayout actually forms a grid like arrangement of cells. This is just like one excel spreadsheet where each cell is of same size. If ...

Read More »

Java Swing Drag and Drop Example

This example will help us to know about how to enable drag feature for different components and how to customize drag and drop feature for custom flavors. 1. Introduction In case we wish to transfer data from one UI component (Where applicable) to another, one way to carry it out is cut+ paste or copy+ paste. In this case data ...

Read More »

IntelliJ IDEA Show File in Project View Example

In this article we will learn about Project View of IDEA IntelliJ. 1. Introduction IntelliJ is one of the most widely used Integrated Development Environment (IDE) by Java Developers. It is developed by JetBrains (formerly known as IntelliJ), and is available as an Apache 2 Licensed community edition and in a proprietary commercial edition. Both can be used for commercial development. ...

Read More »

IntelliJ IDEA Project Structure Example

In this example we will learn about IntelliJ project structure. IntelliJ is one of the most commonly used IDE by Java developers. For this example we will use 2017.2.2 version of IntelliJ. Please note that some of the instructions could change if you are using another version of IntelliJ. 1. Introduction A project is a top-level organizational unit for your ...

Read More »

Eclipse XPath Evaluation Plugin Example

Hello, I started using Eclipse IDE to work with XML. In this tutorial, we will learn to use the XML and XPath Editor available through the Web Tools Platform (WTP) within Eclipse. 1. Introduction XML stands for Extensible Markup Language and is a text-based markup language derived from Standard Generalized Markup Language (SGML). XML tags identify the data and are ...

Read More »

Eclipse HTML Plugin Example

Hello, I started using Eclipse IDE to work with HTML5 and Bootstrap. However, editing HTML files in Eclipse IDE was not nice and it felt like using Windows Notepad. In this tutorial, we will learn how to use the HTML Editor available through the Web Tools Platform (WTP) within Eclipse. 1. Introduction HTML stands for Hyper Text Markup Language and ...

Read More »

Eclipse Zest Plugin Tutorial

Eclipse Zest is a visualization toolkit for graphs. This tutorial explains how to directly create a Zest Graph in Eclipse IDE and how to use the JFace abstraction. Table Of Contents 1. Introduction 1.1 Zest Components 1.2 Zest Layout Managers 1.3 Zest Filters 1.4 Zest Installation 2. Eclipse Zest Plugin Tutorial 2.1 Tools Used 2.2 Project Structure 3. Application Building ...

Read More »

IntelliJ IDEA Run with Coverage Example

In this article we will see how we can run a test with coverage using IDEA IntelliJ. 1. Introduction IntelliJ in a Java Integrated Development Environment (IDE) used for developing software programs. Now you can use IntelliJ for other programming languages as well. It is developed by JetBrains (formerly known as IntelliJ), and is available as an Apache 2 Licensed community ...

Read More »