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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package focus; | |
import java.awt.Component; | |
import java.awt.Container; | |
import java.awt.FocusTraversalPolicy; |
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
Option Explicit | |
' 使用上の注意 | |
' Excelは2003以降デフォルトでVBScriptとかから中のプロジェクトを参照できなくなっているので、 | |
' Excel自体の設定を変更して「Visual Basicプロジェクトへのアクセスを信頼する」に | |
' チェックを入れてから使ってください | |
'(「プログラミングによるVisual Basic プロジェクトへのアクセスは信頼性に欠けます」とエラーが出る) | |
' 設定の変更方法はExcelのバージョンによって異なりますので、ググってください。 | |
' エクスポートしたいExcelブックとエクスポート先のパスを記述 |
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
' エクスポートしたいmdbとエクスポート先のパスを記述 | |
Dim src : src = "D:\\M2T\\TestDB.mdb" | |
Dim dst : dst = "D:\\M2T\\" | |
Dim fso : Set fso = CreateObject("Scripting.FileSystemObject") | |
If fso.FileExists(src) <> True Then | |
MsgBox src & vbCrLf & "は存在しません。", vbCritical | |
WScript.Quit() | |
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
Criteria criteria = session.createCriteria(EmployeeMaster.class); | |
criteria.add(Restrictions.eq("employeeKind", selectKind)); | |
criteria.add(Restrictions.isNotNull("employmentEndFlag")); | |
criteria.addOrder(Order.asc("employeeNo")); | |
criteria.addOrder(Order.asc("employeeDate")); | |
if (dateFrom != null) criteria.add(Restrictions.ge("enableDate", dateFrom)); | |
if (dateTo != null) criteria.add(Restrictions.lt("enableDate", dateTo)); |
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
String sourcePath = "./Report/sample.jrxml"; | |
String binaryPath = "./Report/bin/sample.jasper" ; | |
File source = new File(sourcePath); | |
File binary = new File(binaryPath); | |
if (!binary.exists() || source.lastModified() > binary.lastModified()) { | |
JasperCompileManager.compileReportToFile(source.getAbsolutePath(), | |
binary.getAbsolutePath()); |
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
interface DBData { | |
def test() | |
} |
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
Const MENU_ENABLE_EXTENDMODE = "拡張メニューを追加" | |
Const MENU_DISABLE_EXTENDMODE = "拡張メニューを解除" | |
Const MENU_FILLGRAY = "選択範囲を灰色に" | |
Const MENU_FILLYELLOW = "選択範囲を黄色に" | |
Const MENU_FILLRED = "選択範囲を赤色に" | |
Const MENU_FILLCLEAR = "選択範囲の塗りつぶしを解除" | |
Const MENU_ADDALLLINE = "選択範囲に全て罫線" | |
Const MENU_CLEARLINE = "選択範囲の罫線をクリア" |
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
public class BeansValidator { | |
private ClassValidator classValidator; | |
private List<String> validMessages = new ArrayList<String>(); | |
private BeansValidator() {} | |
public BeansValidator(Class clazz) throws Exception{ | |
classValidator = new ClassValidator(clazz); | |
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
--- 途中から | |
D:\Documents and Settings\USER\.griffon\0.9.3\projects\SwingPad\plugins\ | |
jexplose-0.2\addon/batik-util-1.7.xml | |
-- artifact batik#batik-util;1.7!batik-util.jar: | |
D:\Documents and Settings\USER\.griffon\0.9.3\projects\SwingPad\plugins\ | |
jexplose-0.2\addon/batik-util-1.7.jar | |
==== griffon-riverlayout-plugin: tried |
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
// タイプ | |
"Hello World.".each() {print it; sleep(it==" "? 500:100);} | |
// Robot | |
r = { new java.awt.Robot().keyPress(it);sleep(100)}; l=[47,47,72,69,76,76,79,32,87,79,82,76,68] ;l.each(){r(it)} | |
// マップ withDefault()使用 | |
m=['h':'H','w':' W','k':'ld'].withDefault{it};doWork={it.split("\\.")[1].each(){print m[it]}}; doWork('https://www.hellowork.go.jp/') |
NewerOlder