SupportWriter space ↗
A JOURNAL ABOUT TECHNOLOGY

Learn something new.
Write. Share.

A space to connect knowledge, one line of code a day.
Discover tutorials, ideas, and notes from a learning journey.

1967 notes & counting ↙
EDITOR’S PICK ↗
Pentesting

Planning Your First Web Application Pentest: Scope, Safety, and Evidence

Build a focused web pentest plan with clear authorization, realistic objectives, controlled testing, and evidence that developers can use.

D Putu Adi Guna Permana · 3 min read
FOR YOUR CURIOSITY

Latest notes.

SWING / NOTES</>↗
Swing18 Aug 2007

How do I use JFormattedTextField to format user input?

The JFormattedTextField allows us to create a text field that can accept a formatted input. In this code snippet we create two formatted text fields that accept a valid phone number and a date. package org.kodejava.swing; import javax.swing.JFormattedTextField; import javax.swing.JFrame; import javax.swing.SwingUtilities; import javax.swing.WindowConstants; import javax.swing.text.DateFormatter; import javax.swing.text.MaskFormatter; import java.awt.Dimension; import java.awt...

Wayan · 2 min read
JDBC / NOTES</>↗
JDBC14 Aug 2007

How do I make updates in updatable ResultSet?

Using an updatable result set enables our program to update record in the database from the ResultSet object. The operation on the ResultSet object can be updated, inserted or deleted. With this mechanism, we can update a database without executing a query. In the example below we have a product table with the id, code, […]

Wayan · 4 min read
SWING / NOTES</>↗
Swing13 Aug 2007

How do I handle mouse button click event?

package org.kodejava.swing; import javax.swing.JFrame; import javax.swing.JTextArea; import javax.swing.SwingUtilities; import javax.swing.WindowConstants; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; public class MouseClickEventDemo extends JFrame { public MouseClickEventDemo() { initComponents(); } public static void main(String[] args) { SwingUtilities.invokeLater(() -> new MouseClickEventDemo().setVisible(true)); } private void initComponents() {...

Wayan · 1 min read
SWING / NOTES</>↗
Swing10 Aug 2007

How do I handle mouse wheel event?

package org.kodejava.swing; import javax.swing.JFrame; import javax.swing.JTextArea; import javax.swing.SwingUtilities; import javax.swing.WindowConstants; import java.awt.event.MouseWheelEvent; public class MouseWheelListenerDemo extends JFrame { public MouseWheelListenerDemo() { initComponents(); } public static void main(String[] args) { SwingUtilities.invokeLater(() -> new MouseWheelListenerDemo().setVisible(true)); } private void initComponents() { setDefaultCloseOperati...

Wayan · 2 min read
SWING / NOTES</>↗
Swing09 Aug 2007

How do I handle mouse motion event?

package org.kodejava.swing; import javax.swing.JFrame; import javax.swing.JTextArea; import javax.swing.SwingUtilities; import javax.swing.WindowConstants; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; public class MouseMotionListenerDemo extends JFrame { public MouseMotionListenerDemo() { initComponents(); } public static void main(String[] args) { SwingUtilities.invokeLater(() -> new MouseMotionListenerDemo().setVisible(true)); } private void i...

Wayan · 1 min read
SWING / NOTES</>↗
Swing05 Aug 2007

How do I handle mouse event in Swing?

package org.kodejava.swing; import javax.swing.JFrame; import javax.swing.JTextArea; import javax.swing.SwingUtilities; import javax.swing.WindowConstants; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; public class MouseListenerDemo extends JFrame { public MouseListenerDemo() { initComponents(); } public static void main(String[] args) { SwingUtilities.invokeLater(() -> new MouseListenerDemo().setVisible(true)); } private void initComponents() { setDef...

Wayan · 1 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.