일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- node.js
- oracle
- Android
- 선택적조인
- PLSQL
- PHP
- tomcat
- Spring
- jQuery
- swingx
- sencha touch
- Struts
- appspresso
- WebLogic
- rowspan
- JSON
- GPS
- JDOM
- iBATIS
- MySQL
- Eclipse
- Ajax
- 전자정부프레임워크
- ibsheet
- dock
- phonegap
- jsr 296
- 가우스
- Google Map
- MFC
- Today
- Total
목록분류 전체보기 (632)
Where The Streets Have No Name
http://www.java2s.com/Code/Java/Database-SQL-JDBC/SerializedAndDeserializeObjectOracle.htm
mybatisConf.xml logMapper.xml select * from apache_log where seq = #{id} DBFactory.java package mybatis; import java.io.IOException; import java.io.Reader; import org.apache.ibatis.io.Resources; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session.SqlSessionFactoryBuilder; public class DBFactory { private static DBFacto..
import java.awt.Color; import java.awt.Cursor; import java.awt.Font; import java.awt.Graphics; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; import javax.swing.JButton; import javax.swing.JComponent..
import java.io.File; import java.io.FileOutputStream; import java.util.Iterator; import java.util.List; import org.jdom.Document; import org.jdom.Element; import org.jdom.JDOMException; import org.jdom.input.SAXBuilder; import org.jdom.output.Format; import org.jdom.output.XMLOutputter; import org.jdom.xpath.XPath; public class CdrXmlDemo4 { public static void main(String[] args) { try { SAXBuil..
import java.io.FileOutputStream; import java.io.IOException; import java.math.BigInteger; import org.jdom.Document; import org.jdom.Element; import org.jdom.output.Format; import org.jdom.output.XMLOutputter; public class CdrXmlDemo1 { public static void main(String[] args) { Element root = new Element("cdr"); Element message = new Element("message"); root.addContent(message); Element messageId ..
import java.io.File; import org.jdom.Document; import org.jdom.JDOMException; import org.jdom.input.SAXBuilder; import org.jdom.output.Format; import org.jdom.output.XMLOutputter; public class XMLOutputterDemo2 { public static void main(String[] args) { try { SAXBuilder b = new SAXBuilder(false); // true -> validate // Create a JDOM document. Document doc = b.build(new File("e:/people.xml")); //..
import java.awt.BorderLayout; import java.awt.Component; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTabbedPane; public class TabbedTest extends JFrame { private JTabbedPane jtp = new JTabbedPane(); static int cou..
DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(new TableRowData("CF", "", "", "", true)); DefaultMutableTreeNode incomeNode = new DefaultMutableTreeNode(new TableRowData("Income", "25000", "5000", "300000", true)); incomeNode.add(new DefaultMutableTreeNode(new TableRowData("Salary1", "250001", "50001", "3000001", false))); incomeNode.add(new DefaultMutableTreeNode(new TableRowData(..
Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 380, Size: 380 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at org.jdesktop.swingbinding.impl.ListBindingManager$ColumnDescriptionManager.validateBinding(ListBindingManager.java:191) at org.jdesktop.swingbinding.impl.ListBindingManager.valueAt(ListBindingMana..
prefs.xml import java.util.*; import java.util.prefs.*; import java.io.*; public class PreferenceExport { public void setSomeProperties(Preferences p) throws BackingStoreException { p.put("fruit", "apple"); p.put("cost", "1.01"); p.put("store", "safeway"); } public void exportToFile(Preferences p, String fileName) throws BackingStoreException { try { FileOutputStream fos = new FileOutputStream(f..
MapListModel listModel; String file = "logManagerOption.xml"; ApplicationContext ctxt; public DesktopApplication2View(SingleFrameApplication app) { super(app); ctxt = app.getContext(); listModel = new MapListModel(); initComponents(); ... } @Action public void addPhoneEntry() { String key = txtName.getText().trim(); String value = txtPhone.getText().trim(); listModel.put(key, value); } @Action p..
private void initDockFrontend() { DockController controller = new DockController(); DockFrontend frontend = new DockFrontend(controller, getFrame()); SplitDockStation station = new SplitDockStation(); getFrame().add(station.getComponent()); frontend.addRoot("station", station); SplitDockGrid grid = new SplitDockGrid(); grid.addDockable(0, 0, 1, 1, createDockable("Red", Color.RED)); grid.addDocka..
private void initCControl() { CControl control = new CControl(getFrame()); getFrame().add(control.getContentArea()); CGrid grid = new CGrid(control); grid.add(0, 0, 1, 1, createDockable2("Red", Color.RED)); grid.add(0, 1, 1, 1, createDockable2("Green", Color.GREEN)); grid.add(1, 0, 1, 1, createDockable2("Blue", Color.BLUE)); grid.add(1, 1, 1, 1, createDockable2("Yellow", Color.YELLOW)); control...
private void initStackDockStation() { DockController controller = new DockController(); StackDockStation station = new StackDockStation(); station.setTitleText("Stack"); station.drop(new DefaultDockable("one")); station.drop(new DefaultDockable("two")); controller.add(station); getFrame().add(station.getComponent()); System.out.println(""+station.getDockableCount()); for(int inx = 0;inx < statio..
private void initDockController() { DockController controller = new DockController(); SplitDockStation station = new SplitDockStation(); controller.add(station); SplitDockGrid grid = new SplitDockGrid(); grid.addDockable(0, 0, 2, 1, new DefaultDockable("North")); grid.addDockable(0, 1, 1, 1, new DefaultDockable("South West")); grid.addDockable(1, 1, 1, 1, new DefaultDockable("South East")); stat..
private void initDockFrontend() { DockFrontend frontend = new DockFrontend(getFrame()); SplitDockStation station = new SplitDockStation(); getFrame().add(station.getComponent()); frontend.addRoot("station", station); SplitDockGrid grid = new SplitDockGrid(); grid.addDockable(0, 0, 1, 1, createDockable("Red", Color.RED)); grid.addDockable(0, 1, 1, 1, createDockable("Green", Color.GREEN)); grid.ad..
@Action public void cancelTask() { TaskMonitor taskMonitor = getApplication().getContext().getTaskMonitor(); List tkList = taskMonitor.getTasks(); System.out.println("Task size : "+tkList.size()); for(Task t:tkList){ System.out.println("Task title : "+t.getTitle()); t.cancel(true); } }
@Action public Task longTask() { LongTaskTask longTk = new LongTaskTask(getApplication()); longTk.setTaskName("New Task"); longTk.setMaxStep(40); longTk.setMsecDelay(150); return longTk; }
import org.jdesktop.swingx.auth.LoginService; public class DummyLoginService extends LoginService { @Override public boolean authenticate(String arg0, char[] arg1, String arg2) throws Exception { //throw new UnsupportedOperationException("Not supported yet."); System.out.println("name : " + arg0); StringBuilder passwd = new StringBuilder(); for (char c : arg1) { passwd.append(c); } System.out.pr..