Skip to content

Instantly share code, notes, and snippets.

@nigjo
nigjo / Tag.java
Last active March 13, 2024 10:03
A simple Builder to generate HTML/XML structures. All attributes, text content or child elements are set or added in one "single" command chain.
//
// Attribution 4.0 International (CC BY 4.0)
// https://creativecommons.org/licenses/by/4.0/
//
// Original location: https://gist.github.com/nigjo/3a0590c6f5df112e87b04e63e38f21d7
// Last Changed: 2024-03-13
// Author: Jens Hofschröer <github@nigjo.de>
//
package com.github.gist.nigjo.web;
@nigjo
nigjo / SimpleDocumentListener.java
Last active March 3, 2020 13:53
A DocumentListener as a functional interface. This interface aggregates all default methods of a DocumentListener to a single method. This is usefull if you don't care about the type of change in a JTextComponent.
//
// Attribution 4.0 International (CC BY 4.0)
// https://creativecommons.org/licenses/by/4.0/
//
// Original location:
// https://gist.github.com/nigjo/d14a29eab90a0a55f62228c2c71ecb03
//
package com.github.gist.nigjo;
import javax.swing.event.DocumentEvent;