This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
import groovy.xml.MarkupBuilder | |
import java.nio.file.Files | |
import java.nio.file.Paths | |
def writer = new StringWriter() | |
def xml = new MarkupBuilder(writer) | |
xml.doubleQuotes = true | |
xml.mkp.xmlDeclaration([version: '1.0', encoding: 'UTF-8']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xyz.arwhite.swing; | |
import java.awt.Dimension; | |
import java.awt.HeadlessException; | |
import java.awt.event.MouseEvent; | |
import java.awt.event.MouseWheelEvent; | |
import java.awt.event.MouseAdapter; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; |