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
import java.awt.*; | |
import java.awt.event.*; | |
import java.awt.geom.*; | |
import java.awt.image.*; | |
import java.util.*; | |
import javax.swing.*; | |
import javax.swing.border.*; | |
public class RoundedBorderTest { | |
public JComponent makeUI() { |
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
import java.awt.*; | |
import java.util.Objects; | |
import javax.swing.*; | |
import javax.swing.border.*; | |
import javax.swing.table.*; | |
public class TransparentHeaderTest { | |
public JComponent makeUI() { | |
Color alphaZero = new Color(0x0, true); |
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 example; | |
//-*- mode:java; encoding:utf-8 -*- | |
// vim:set fileencoding=utf-8: | |
//@homepage@ | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.util.*; | |
import javax.swing.*; | |
import javax.swing.Timer; | |
import javax.swing.tree.*; |
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
import java.awt.*; | |
import java.awt.image.ImageObserver; | |
import java.util.Objects; | |
import javax.swing.*; | |
import javax.swing.tree.*; | |
public class AnimatedTreeNodeTest { | |
public JComponent makeUI() { | |
ImageIcon icon = new ImageIcon(getClass().getResource( | |
"restore_to_background_color.gif")); |
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 example; | |
//-*- mode:java; encoding:utf-8 -*- | |
// vim:set fileencoding=utf-8: | |
//http://java-swing-tips.blogspot.jp/2012/02/jcheckbox-node-jtree.html | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.util.*; | |
import javax.swing.*; | |
import javax.swing.event.*; | |
import javax.swing.tree.*; |
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 example; | |
//-*- mode:java; encoding:utf-8 -*- | |
// vim:set fileencoding=utf-8: | |
//@homepage@ | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.beans.*; | |
import java.io.*; | |
import java.util.List; | |
import javax.swing.*; |
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
import java.time.*; | |
import java.time.temporal.*; | |
public class DurationFormatTest { | |
public static void main(String... args) throws Exception { | |
for (int i = 0; i < 10; i++) { | |
long startTime = System.nanoTime(); | |
Thread.sleep(1000, 888888); | |
long endTime = System.nanoTime(); |
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 example; | |
//-*- mode:java; encoding:utf-8 -*- | |
// vim:set fileencoding=utf-8: | |
// http://ateraimemo.com/Swing/FontSilhouette.html | |
// http://stackoverflow.com/questions/18686199/fill-unicode-characters-in-labels | |
// http://blog.livedoor.jp/kinisoku/archives/4204798.html | |
import java.awt.*; | |
import java.awt.font.*; | |
import java.awt.geom.*; | |
import java.io.Serializable; |
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
# -*- mode: ruby; encoding: utf-8 -*- | |
require 'uri' | |
require 'date' | |
require 'yaml' | |
module HTMLUtils | |
ESC = { | |
'&' => '&', | |
'"' => '"', | |
'<' => '<', |
NewerOlder