일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Ajax
- GPS
- ibsheet
- Google Map
- appspresso
- jsr 296
- rowspan
- MFC
- iBATIS
- Struts
- Eclipse
- JDOM
- 전자정부프레임워크
- 가우스
- node.js
- PLSQL
- sencha touch
- tomcat
- WebLogic
- oracle
- jQuery
- dock
- swingx
- MySQL
- 선택적조인
- Spring
- PHP
- phonegap
- Android
- JSON
- Today
- Total
목록Developement (559)
Where The Streets Have No Name
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..
private void jButton1MouseClicked(java.awt.event.MouseEvent evt) { try { int i = 100 / 0; } catch (Exception e) { JXErrorPane.showDialog(this, new ErrorInfo("Error", e.getMessage(), null, null, e, null, null)); } }
http://codery.blogspot.com/2008/05/installing-swingx-in-netbeans-61.html SwingX adds some really nice UI and other improvements to Swing. It's sponsored by Sun, and may be released in a future version of Java, but appears stable enough to use in projects now. There's a tutorial on how to set it up, but it's missing some important content, so here's how I did it: 1. Download and unzip from http:/..
Basic patterns Data Access Objects Saving (detached) entities Retrieving entities Removing entities Service Facades and Data Transfers Objects Advanced patterns Bidirectional assocations Lazy loading Bidirectional associations vs. lazy loading Using UUIDs as primary keys Field access vs. property access Mapping inheritance hierarchies Testing
참고 : http://cafe.naver.com/eclipseplugin/1975 ApplicationWorkbenchWindowAdvisor의 preWindowOpen 메소드에서 아래와 같이 코드를 추가한다. PlatformUI.getPreferenceStore().setValue(IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS, false);
package rcpview; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.application.ActionBarAdvisor; import org.eclipse.ui.application.IActionBarConfigurer; import org.eclipse.ui.application.IWorkbenchWindowConfigurer; import org.eclipse.ui.application.WorkbenchWindowAdvisor; public class ApplicationWorkbenchWindowAdvisor e..
출처:http://www.debuglab.com/knowledge/csocket.html http://microsoft.ease.lsoft.com/scripts/wa-msn.exe?A2=ind9811c&L=mfc&T=0&P=5460 1.요약 CSocket / CAsyncSocket을 생성한 곳이 아닌 다른 Thread로 넘겨 처리할 경우 CSocket이 가진 Thread state가 변해 에러가 발생합니다. 예를들어 한쪽에서는 Listen을 하여 클라이언트 Socket을 Accept하고, Thread를 생성시켜 Socket전송을 맡길 경우에 Thread문제를 해결하는 방법을 소개하겠습니다. 2.본문 방법은 간단합니다. Accept한 Socket을 Deatch시키고 거기에서 나온 handle을 Thread..
sudo apt-get install build-essential