Skip to content

Instantly share code, notes, and snippets.

@kikujin
Last active January 15, 2023 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kikujin/033cb877f69d0cbf178a79e4c4afacd3 to your computer and use it in GitHub Desktop.
Save kikujin/033cb877f69d0cbf178a79e4c4afacd3 to your computer and use it in GitHub Desktop.
JAVA 正規表現学習アプリ

Javaで作成した正規表現の学習・テスト用のアプリケーションをフリーソフトとしてMITライセンスのもとで公開しています。
Download ZIPからダウンロード可能なzipファイルにソースコードを内包した実行可能Jarファイルが含まれています。
詳しくは以下をご参照ください。
https://fujinand.hatenablog.com/entry/2019/03/31/155607

現在Java1.5の正規表現APIの内容で作成されているので、これを1.8に対応させた後にGitHubにて公開する予定です。

Copyright (c) 2019 kikujin
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<!-- ########## html default font list ########## -->
<!-- 最初に見つかった有効なフォントを単一で利用する
JEditorPaneでStyleSheetのfont-famillyは正しく機能しない -->
<!-- (Java logical font) Serif | SansSerif | Monospaced | Dialog | DialogInput -->
<entry key="html.string.font.list">
YuGothic,
Yu Gothic Medium,
メイリオ,
Hiragino Kaku Gothic ProN,
SansSerif
</entry>
<!-- ########## html color ########## -->
<entry key="html.string.bgcolor">101010</entry>
<entry key="html.string.codecolor">00C000</entry>
<entry key="html.string.textcolor">808080</entry>
<entry key="html.string.explaincolor">008080</entry>
<entry key="html.string.linkcolor">4040ff</entry>
<entry key="html.string.highlightcolor_1">C000C0</entry>
<entry key="html.string.highlightcolor_2">40C080</entry>
<entry key="html.string.infocolor">DD2222</entry>
<!-- ########## html others ########## -->
<!-- [xx-small x-small small medium large x-large xx-large 12pt 12mm] -->
<entry key="html.string.font.size">12pt</entry>
<entry key="html.string.body.padding">5px</entry>
<!-- ########## Set LookAndFeel ########## -->
<entry key="app.string.lookandfeel.class">javax.swing.plaf.nimbus.NimbusLookAndFeel</entry>
<!-- <entry key="app.string.lookandfeel.class">OS_STYLE_LAF</entry> -->
<!-- <entry key="app.string.lookandfeel.class">CROSS_PLATFORM_LAF</entry> -->
<!-- <entry key="app.string.lookandfeel.class">javax.swing.plaf.metal.MetalLookAndFeel</entry> -->
<!-- <entry key="app.string.lookandfeel.class">com.sun.java.swing.plaf.motif.MotifLookAndFeel</entry> -->
<!-- <entry key="app.string.lookandfeel.class">com.sun.java.swing.plaf.windows.WindowsLookAndFeel</entry> -->
<!-- <entry key="app.string.lookandfeel.class">com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel</entry> -->
<!-- ########## Common text properties (color: r,g,b) ########## -->
<entry key="text.int.tab.count">4</entry>
<entry key="text.color.whitespace">160,160,160</entry>
<entry key="text.color.bg">10,10,10</entry>
<entry key="text.color.fg">0,128,192</entry>
<entry key="text.color.caret">230,230,230</entry>
<entry key="text.color.endLine">32,32,32</entry>
<!-- ########## Button ########## -->
<entry key="button.string.font.list">
YuGothic,
Yu Gothic Medium,
メイリオ,
Hiragino Kaku Gothic ProN,
SansSerif
</entry>
<entry key="button.string.font.style">PLAIN</entry>
<entry key="button.int.font.size">12</entry>
<!-- ########## Label ########## -->
<entry key="label.string.font.list">
YuGothic,
Yu Gothic Medium,
メイリオ,
Hiragino Kaku Gothic ProN,
SansSerif
</entry>
<entry key="label.string.font.style">PLAIN</entry>
<entry key="label.int.font.size">12</entry>
<!-- ########## TextField ########## -->
<entry key="textfield.string.font.list">
YuGothic,
Yu Gothic Medium,
メイリオ,
Hiragino Kaku Gothic ProN,
SansSerif
</entry>
<entry key="textfield.string.font.style">PLAIN</entry>
<entry key="textfield.int.font.size">12</entry>
<!-- ########## SourceArea ########## -->
<entry key="sourcearea.color.triangle">192,0,192</entry>
<entry key="sourcearea.color.outofregion">128,128,128</entry>
<entry key="sourcearea.color.highlight">255,255,192</entry>
<entry key="sourcearea.string.font.list">
YuGothic,
Yu Gothic Medium,
メイリオ,
Hiragino Kaku Gothic ProN,
SansSerif
</entry>
<entry key="sourcearea.string.font.style">PLAIN</entry>
<entry key="sourcearea.int.font.size">12</entry>
<!-- ########## ReplacementArea ########## -->
<entry key="replacementarea.color.highlight">255,255,192</entry>
<entry key="replacementarea.string.font.list">
YuGothic,
Yu Gothic Medium,
メイリオ,
Hiragino Kaku Gothic ProN,
SansSerif
</entry>
<entry key="replacementarea.string.font.style">PLAIN</entry>
<entry key="replacementarea.int.font.size">12</entry>
<!-- ########## Left EditorPane ########## -->
<!-- (Java logical font) Serif | SansSerif | Monospaced | Dialog | DialogInput -->
<entry key="lefteditorpane.string.font.list">
YuGothic,
Yu Gothic Medium,
メイリオ,
Hiragino Kaku Gothic ProN,
SansSerif
</entry>
<!-- (xx-small x-small small medium large x-large xx-large 12pt 12mm) -->
<entry key="lefteditorpane.string.html.font.size">12</entry>
<entry key="methodlist.string.font.list">
YuGothic,
Yu Gothic Medium,
メイリオ,
Hiragino Kaku Gothic ProN,
SansSerif
</entry>
<!-- font-style: PLAIN | BOLD | ITALIC | BOLDITALIC -->
<entry key="methodlist.string.font.style">PLAIN</entry>
<!-- font-size int -->
<entry key="methodlist.int.font.size">12</entry>
<entry key="tabtitle.string.font.list">
YuGothic,
Yu Gothic Medium,
メイリオ,
Hiragino Kaku Gothic ProN,
SansSerif
</entry>
<!-- font-style: PLAIN | BOLD | ITALIC | BOLDITALIC -->
<entry key="tabtitle.String.font.style">PLAIN</entry>
<!-- font-size int -->
<entry key="tabtitle.int.font.size">12</entry>
<!-- ########## ImagePanel ########## -->
<!-- see Classloader#getResource -->
<entry key="imagepanel.string.imagepath">/res/app/img/duke01.png</entry>
<!-- <entry key="imagepanel.string.imagepath">/res/app/img/duke02.png</entry> -->
</properties>
rta-color.xml.txtをコピーしてUTF-8で編集後、rta-color.xmlにリネームしてカレントディレクトリに配置するとUIの一部を変更できます。
カレントディレクトリにrta-color.xmlが無ければデフォルトの設定で表示されるので、起動に必須なのはjarファイルのみです。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment