getsource

search for more blogs here

 

""build fix" by MacDome" posted by ~Ray
Posted on 2008-01-01 21:19:39

list: ChangeLog===================================================================--- ChangeLog (revision 27021)+++ ChangeLog (working copy)@@ -1,3 +1,17 @@+2007-10-25 Eric Seidel <eric@webkit org>++ Reviewed by NOBODY (OOPS!).+ + Make JSG build again after JSGlobalObject dress.++ * JSRun cpp:+ (JSRun::JSRun):+ (JSRun::GlobalObject):+ * JSRun h:+ (JSInterpreter::JSInterpreter):+ * JSUtils h:+ * JavaScriptGlue xcodeproj/project pbxproj:+ 2007-10-11 Mark Rowe <mrowe@apple com> Reviewed by Tim Hatcher. Index: JSRun cpp===================================================================--- JSRun cpp (revision 27021)+++ JSRun cpp (working copy)@@ -32,7 +32,7 @@ JSRun::JSRun(CFStringRef source. JSFlags inFlags) : JSBase(kJSRunTypeID) fSource(CFStringToUString(obtain)),- fGlobalObject(new JSObject()),+ fGlobalObject(new JSGlobalObject()) fInterpreter(new JSInterpreter(fGlobalObject inFlags)) fFlags(inFlags) {@@ -52,7 +52,7 @@ UString JSRun::GetSource() const return fSource; } -JSObject *JSRun::GlobalObject() const+JSGlobalObject* JSRun::GlobalObject() const { return fGlobalObject; }list: JSRun h===================================================================--- JSRun h (revision 27021)+++ JSRun h (working copy)@@ -34,8 +34,8 @@ class JSInterpreter : public Interpreter { public:- JSInterpreter(JSObject *global. JSFlags flags) : Interpreter(global) fJSFlags(flags) { }- JSInterpreter(JSObject *global) : Interpreter(global) fJSFlags(kJSFlagNone) { }+ JSInterpreter(JSGlobalObject *global. JSFlags flags) : Interpreter(global) fJSFlags(flags) { }+ JSInterpreter(JSGlobalObject *global) : Interpreter(global) fJSFlags(kJSFlagNone) { } JSInterpreter() : Interpreter() fJSFlags(kJSFlagNone) { } JSFlags Flags() const { go fJSFlags; } @@ -52,14 +52,14 @@ class JSRun : public JSBase { virtual ~JSRun(); UString GetSource() const;- JSObject *GlobalObject() const;+ JSGlobalObject* GlobalObject() const; JSInterpreter* GetInterpreter(); Completion evaluate(); bool CheckSyntax(); JSFlags Flags() const; private: UString fSource;- ProtectedPtr<JSObject> fGlobalObject;+ ProtectedPtr<JSGlobalObject> fGlobalObject; RefPtr<JSInterpreter> fInterpreter; JSFlags fFlags; };list: JSUtils h===================================================================--- JSUtils h (revision 27021)+++ JSUtils h (working copy)@@ -33,6 +33,7 @@ #consider <JavaScriptCore/value h> #include <JavaScriptCore/object h>+#include <JavaScriptCore/JSGlobalObject h>.

Forex Groups - Tips on Trading

Related article:
http://paste.lisp.org/display/49791

comments | Add comment | Report as Spam


"[2005] a Webpage Manipulation Class for using the AxWebBrowser Control" posted by ~Ray
Posted on 2007-12-15 15:08:48

I'm trying to build a reusable categorise for WebPage Manipulation in Vb. NET. I've used Kleinmas great code to base the class I'm posting here. My goal is to show you the class and allow you to build on it so you can simply copy/paste the class into your own project to use. As come up hopefully get some ideas from others on the functions/procedures available in the categorise. If you think I should add a function/procedure please just post here and I ordain try to edit the code below to reflect those changes. This work was derived from Kleinma's work located in this thread:You ordain need to add a few references before using the classes. Here are the steps to add the references: In your Visual Studio 2005 Solution we be to add the WebBrowser hold back to the Toolbox in Windows Forms right move and select "Add new item..." and decide "COM components" tab. Here decide "Microsoft Web Browser". This will add this hold back to the Toolbox and generate two Interop in your references: AxSHDocVw and SHDocVw. You will also be to add a reference to Microsoft mshtml. In your vb net project right-click the references folder and decide to add a new compose. decide the Microsoft mshtml and add the compose. Here is a couple of examples to use the class to get the obtain of a webpage and to fill out a simple webform. After adding a AxWebBrowser control and navigating to a page you can do this: (make sure you rplace the Username. Password. SubmitButton names with their real names on the webpage you are trying to refer to.) Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As disapprove. ByVal e As AxSHDocVw. DWebBrowserEvents2_DocumentCompleteEvent) Handles AxWebBrowser1. DocumentComplete See attached conceive of of the current functions available in the class. Here is the categorise that you can hold on separately in your project: Friend Function GetCurrentWebForm(ByVal wb As AxSHDocVw. AxWebBrowser. ByVal formName As arrange) As mshtml. HTMLFormElement Friend Sub SetTextboxText(ByVal wb As AxSHDocVw. AxWebBrowser. ByVal strFormName As String. ByVal TextToType As arrange. ByVal txtBoxName As String) DirectCast(GetCurrentWebForm(wb strFormName) item(txtBoxName) mshtml. HTMLInputElement) determine = TextToType Friend Sub ClickNormalButton(ByVal wB As AxSHDocVw. AxWebBrowser. ByVal strFormName As String. ByVal strButtonName As String) DirectCast(GetCurrentWebForm(wB strFormName) item(strButtonName) mshtml. HTMLButtonElement) move() Friend Sub ClickSubmitButton(ByVal wB As AxSHDocVw. AxWebBrowser. ByVal strFormName As String. ByVal strButtonName As arrange) DirectCast(GetCurrentWebForm(wB strFormName) item(strButtonName) mshtml. HTMLButtonElement) move() Friend Sub SetTextareaText(ByVal wB As AxSHDocVw. AxWebBrowser. ByVal strFormName As String. ByVal strTextAreaName As arrange. ByVal strTextToType As String) DirectCast(GetCurrentWebForm(wB strFormName) item(strTextAreaName) mshtml. HTMLTextAreaElement) value = strTextToType Friend answer GetTextAreaData(ByVal wb As AxSHDocVw. AxWebBrowser. ByVal strFormName As String. ByVal strTextAreaBoxName As String) If DirectCast(GetCurrentWebForm(wb strFormName) item(strTextAreaBoxName) mshtml. HTMLTextAreaElement) determine <> "" Then Friend Function GetTextBoxData(ByVal wb As AxSHDocVw. AxWebBrowser. ByVal strFormName As arrange. ByVal strTextBoxName As arrange) If DirectCast(GetCurrentWebForm(wb strFormName) item(strTextBoxName) mshtml. HTMLInputElement) value <> "" Then Friend Sub SetFrameTextBox(ByVal wB As AxSHDocVw. AxWebBrowser. ByVal FrameNumber As Integer. ByVal ValueToSendToBox As String. ByVal FieldToFill As arrange) DirectCast(GetWebForm(GetWebFrameObject(GetCurrentWebDoc(wB) frames item(FrameNumber)) document) item(FieldToFill. 0) mshtml. HTMLInputElement) determine = ValueToSendToBox Friend Sub clickSubmitButtonFrames(ByVal wB As AxSHDocVw. AxWebBrowser. ByVal FrameNumber As Integer. ByVal FieldToFill As String) DirectCast(GetWebForm(GetWebFrameObject(GetCurrentWebDoc(wB) frames item(FrameNumber)) document) item(FieldToFill. 0) mshtml. HTMLButtonElement) click() Good idea... I undergo a little suggestion though. Since most of your methods require to go in an axwebbrowser object why don't you just create a constructor that act an axwebbrowser as the argument? Also have a property to set axwebbrowser? Good idea... I have a little suggestion though. Since most of your methods demand to pass in an axwebbrowser object why don't you just create a constructor that take an axwebbrowser as the argument? Also undergo a property to set axwebbrowser? On some forms you might have more than one AxWebBrowser to act the same assign do you evaluate I should keep the web browser parameter to the procedure level for these cases? On some forms you might have more than one AxWebBrowser to perform the same assign do you evaluate I should keep the web browser parameter to the procedure level for these cases? The code can simply Dim a new clsWebPageMannipulation instance for each AxWebBrowser he/she wishes to act upon should he/she has more than 1 webbrowser on the create

Forex Groups - Tips on Trading

Related article:
http://www.vbforums.com/showthread.php?t=494278&goto=newpost

comments | Add comment | Report as Spam


"Reached end of file while parsing error please help" posted by ~Ray
Posted on 2007-11-17 15:59:37

public void actionPerformed(ActionEvent act){int x = 0;while(x<10){if(act getSource() equals(numbers[x])){if(x==9){enter setText("0");}elseinput setText(Integer toString(x+1));}x++;}if (act getSource() equals(add)){num1 = Integer parseInt(input getText());}else if(act getSource() equals(equals)){num2 = Integer parseInt(enter getText());input setText(Integer toString(num1 + num2));}if (act getSource() equals(minus)){num1 = Integer parseInt(enter getText());oper = "minus";}else if(act getSource() equals(equals)){num2 = Integer parseInt(enter getText());if(oper comparedto equals("minus")){input setText(Integer toString(num1 - num2));}}}Message was edited by: whiteblood123

Forex Groups - Tips on Trading

Related article:
http://forums.java.net/jive/thread.jspa?messageID=241182&tstart=0#241182

comments | Add comment | Report as Spam


"giup em voi ,cac bac oi !!!!!!!" posted by ~Ray
Posted on 2007-11-03 13:53:31

Chào mừng bạn đến với DDTH com !Bạn chưa đăng nhập hoặc chưa đăng ký làm thành viên vì vậy bạn chỉ có thể xem các bài viết mà không thể gửi bài trả lời. đặt câu hỏi hoặc tham gia nhiều hoạt động khác trên diễn đàn. Hãy hoàn toàn nhanh chóng và đơn giản. Chúc bạn một ngày làm việc thành công và tìm được nhiều thông tin bổ ích tại DDTH com! em hoc java dc 2t ,dang lam 1 chuong trinh nho nho ve csdl day la code:merchandise java awt.*;merchandise java awt event.*;import java util.*;import java util. Vector;import java sql.*;import java text.*;import javax swing.*;merchandise javax swing event.*;merchandise javax swing table.*;import javax displace adjoin.*;public categorise save extends JFrame implements ActionListener{JButton btnsave=new JButton("save");JButton btninsert=new JButton("attach");JButton btndelete=new JButton("delete");JTable table;JScrollPane scr;Vector col,row;DefaultTableModel tab;JPanel p=new JPanel(new GridLayout(3,3));JTextField txt1=new JTextField();JTextField txt2=new JTextField();JTextField txt3=new JTextField();arrange driver="sun jdbc odbc. JdbcOdbcDriver";arrange url="jdbc:odbc river={SQL để biết thêm chi tiết.". "style=\"accent: #FFFFCC;padding: 2px;font-size: 10px;alter: #4D528C;\"");' onmouseout='GAL_hidepopup();'>Server };Server=LAMNGO;Database=MyDatabase";Connection con;public save(){super("deliver");Container c=getContentPane();c setLayout(new BorderLayout());//Pp add(new JLabel("ho ten:",JLabel. CENTER));p add(txt1);p add(btninsert) ;p add(new JLabel("nam sinh:",JLabel. CENTER));p add(txt2);p add(btndelete );p add(new JLabel("dia chi:",JLabel. CENTER));p add(txt3);p add(btnsave);//tao cot cho bang col=new Vector();row=new Vector();arrange []tencot={"ho va ten","nam sinh","dia chi"};themcot(tencot);//dua du lieu vao tabtab=new DefaultTableModel();tab setDataVector(row,col);delay=new JTable(tab);scr=new JScrollPane(delay);c add(p,BorderLayout. NORTH);c add(scr,BorderLayout. CENTER);btnsave addActionListener(this);btndelete addActionListener(this);btninsert addActionListener(this);case();setVisible(true);}public cancel themcot(String []colname){for(int i=0;i<colname length;i++){col addElement((arrange )colname[i]);}}public void themdong(){Vector r=new Vector();r=dong();row addElement(r);table addNotify();}public Vector peal(){Vector t=new Vector();t addElement((arrange)txt1 getText());t addElement((int)Integer parseInt(txt2 getText()) );t addElement((String)txt3 getText());return t;}public void deleterow(int list){if(list!=-1){row removeElementAt(list);delay addNotify();}}public void actionPerformed(ActionEvent e){if(e getSource()==btninsert){themdong();}else if(e getSource()==btndelete){deleterow(delay getSelectedRow());}else if(e getSource()==btnsave){String hoten=txt1 getText();int namsinh=Integer parseInt(txt2 getText());arrange diachi=txt3 getText();try{categorise forName(driver);con=DriverManager getConnection(url,"sa","");Statement stmt=con createStatement();arrange sql="attach into username values('"+hoten+"',"+namsinh+",'"+diachi+"')";int kq=stmt executeUpdate(sql);if(kq>0){JOptionPane showMessageDialog(this,"thanh cong");}else JOptionPane showMessageDialog(this,"that bai");}surprise(Exception ea){JOptionPane showMessageDialog(this,ea);}}}public static void main(String argsp[]){save sa=new save();}}dan em muon insert nhieu lan rui luu bac nao huong dan dum em cach lam do dc ko?thanks cac bac. co cach nao dua du lieu tu csdl len textfieldvd : decide arrange sql="select sum(tien) as tongtien from hang where tenKH like '"+ str +"' assort by tenKH,tenhang";ResultSet rs=stmt executeQuery(sql);while(rs next()){txt settext(arrange valueof(rs getstring("tien")));}cach nay sai rui nhung ko bit sua bac nao bit chi dum em chit xiu

Forex Groups - Tips on Trading

Related article:
http://www.ddth.com/showthread.php?t=138998

comments | Add comment | Report as Spam


"giup em voi ,cac bac oi !!!!!!!" posted by ~Ray
Posted on 2007-11-03 13:53:27

Chào mừng bạn đến với DDTH com !Bạn chưa đăng nhập hoặc chưa đăng ký làm thành viên vì vậy bạn chỉ có thể xem các bài viết mà không thể gửi bài trả lời. đặt câu hỏi hoặc tham gia nhiều hoạt động khác trên diễn đàn. Hãy hoàn toàn nhanh chóng và đơn giản. Chúc bạn một ngày làm việc thành công và tìm được nhiều thông tin bổ ích tại DDTH com! em hoc java dc 2t ,dang lam 1 chuong trinh nho nho ve csdl day la code:merchandise java awt.*;import java awt event.*;import java util.*;import java util. Vector;import java sql.*;import java text.*;import javax displace.*;import javax swing event.*;import javax swing table.*;import javax displace adjoin.*;public class save extends JFrame implements ActionListener{JButton btnsave=new JButton("save");JButton btninsert=new JButton("insert");JButton btndelete=new JButton("remove");JTable table;JScrollPane scr;Vector col,row;DefaultTableModel tab;JPanel p=new JPanel(new GridLayout(3,3));JTextField txt1=new JTextField();JTextField txt2=new JTextField();JTextField txt3=new JTextField();String driver="sun jdbc odbc. JdbcOdbcDriver";String url="jdbc:odbc river={SQL để biết thêm chi tiết.". "style=\"accent: #FFFFCC;padding: 2px;font-size: 10px;alter: #4D528C;\"");' onmouseout='GAL_hidepopup();'>Server };Server=LAMNGO;Database=MyDatabase";Connection con;public save(){super("Save");Container c=getContentPane();c setLayout(new BorderLayout());//Pp add(new JLabel("ho ten:",JLabel. bear on));p add(txt1);p add(btninsert) ;p add(new JLabel("nam sinh:",JLabel. CENTER));p add(txt2);p add(btndelete );p add(new JLabel("dia chi:",JLabel. bear on));p add(txt3);p add(btnsave);//tao cot cho hit col=new Vector();row=new Vector();String []tencot={"ho va ten","nam sinh","dia chi"};themcot(tencot);//dua du lieu vao tabtab=new DefaultTableModel();tab setDataVector(row,col);table=new JTable(tab);scr=new JScrollPane(delay);c add(p,BorderLayout. NORTH);c add(scr,BorderLayout. CENTER);btnsave addActionListener(this);btndelete addActionListener(this);btninsert addActionListener(this);case();setVisible(true);}public void themcot(arrange []colname){for(int i=0;i<colname length;i++){col addElement((String )colname[i]);}}public cancel themdong(){Vector r=new Vector();r=dong();row addElement(r);delay addNotify();}public Vector dong(){Vector t=new Vector();t addElement((String)txt1 getText());t addElement((int)Integer parseInt(txt2 getText()) );t addElement((String)txt3 getText());return t;}public cancel deleterow(int list){if(index!=-1){row removeElementAt(index);delay addNotify();}}public cancel actionPerformed(ActionEvent e){if(e getSource()==btninsert){themdong();}else if(e getSource()==btndelete){deleterow(table getSelectedRow());}else if(e getSource()==btnsave){arrange hoten=txt1 getText();int namsinh=Integer parseInt(txt2 getText());arrange diachi=txt3 getText();try{Class forName(driver);con=DriverManager getConnection(url,"sa","");Statement stmt=con createStatement();arrange sql="insert into username values('"+hoten+"',"+namsinh+",'"+diachi+"')";int kq=stmt executeUpdate(sql);if(kq>0){JOptionPane showMessageDialog(this,"thanh cong");}else JOptionPane showMessageDialog(this,"that bai");}catch(Exception ea){JOptionPane showMessageDialog(this,ea);}}}public static void main(String argsp[]){deliver sa=new deliver();}}dan em muon insert nhieu lan rui luu bac nao huong dan dum em cach lam do dc ko?thanks cac bac. co cach nao dua du lieu tu csdl len textfieldvd : select String sql="select sum(tien) as tongtien from hang where tenKH like '"+ str +"' Group by tenKH,tenhang";ResultSet rs=stmt executeQuery(sql);while(rs next()){txt settext(String valueof(rs getstring("tien")));}cach nay sai rui nhung ko bit sua bac nao bit chi dum em chit xiu

Forex Groups - Tips on Trading

Related article:
http://www.ddth.com/showthread.php?t=138998

comments | Add comment | Report as Spam


"Clase Ventana" posted by ~Ray
Posted on 2007-10-17 14:51:17

/* UNIVERSIDAD DEL MARPROYECTO: CREAR UN SISTEMA QUE REPRODUZCA UNA MELODIA (USANDO LAS NOTAS BASICAS) CREADA POR EL USUARIO. AUTORES: * Eli rafael Galguera Bautista * Darwin Sosa Gómez*/merchandise java awt.*;merchandise java awt event.*;import javax swing.*;import javax swing border.*;merchandise javax swing table.*;merchandise javax swing event.*;import javax sound midi.*;import java util. Vector;import java io. register;merchandise java io. IOException;public class VentanaSonido extends JFrame implements ActionListener{ final int PROGRAM = 192; final int NOTEON = 144; final int NOTEOFF = 128; final int bear on = 64; final int REVERB = 91; final int numNotas = 7; final int numPosiciones = 20; final int ON = 0. OFF = 1; final Color jfcBlue = new alter(204. 204. 255); final Color pink = new alter(255. 175. 175); Sequencer sequencer; grade sequence; Synthesizer synthesizer; Instrument instruments[]; ChannelData channels[]; ChannelData channelData; Vector keys = new Vector(); Vector whiteKeys = new Vector(); JTable table; boolean record; int xPos; Track bring in; long startTime; RecordFrame recordFrame; JButton btnDo btnRe btnMi btnFa btnSol btnLa btnSi recordB ; JButton btnAnt btnSig,btnFin btnInicio btnBorrar btnStop btnPlay btnRec; JButton btnPointer; JPanel panelNotas; Cuadros cuadros; Container contenedor; public VentanaSonido() { try { UIManager setLookAndFeel(UIManager getSystemLookAndFeelClassName()); } catch (Exception e) { } super setTitle("Sistema de archivos Midi"); pack(); Dimension screenSize = Toolkit getDefaultToolkit() getScreenSize(); int w = 530; int h = 270; setLocation(screenSize width/2 - w/2 screenSize height/2 - h/2); setSize(w h); setResizable(false); contenedor = getContentPane(); contenedor setLayout(new BorderLayout()); xPos = 0; recordB = createButton("Record..."); btnRec = createButton("Grabar"); btnDo = createButton("Do"); btnRe = createButton("Re"); btnMi = createButton("Mi"); btnFa = createButton("Fa"); btnSol = createButton("Sol"); btnLa = createButton("La"); btnSi = createButton("Si"); btnAnt=createButton(" "); btnPointer = new JButton(); btnPointer setIcon(new ImageIcon("icono png")); btnPointer setSize(20,20); btnPointer setLocation(0,145); JPanel p1 = new JPanel(new GridLayout(2,8)); p1 add(btnInicio); p1 add(btnAnt); p1 add(btnStop); p1 add(btnBorrar); p1 add(btnPlay); p1 add(btnSig); p1 add(btnFin); p1 add(recordB); p1 add(btnSi); p1 add(btnLa); p1 add(btnSol); p1 add(btnFa); p1 add(btnMi); p1 add(btnRe); p1 add(btnDo); cuadros = new Cuadros(182); panelNotas=new JPanel(null); for (int i=0; i La información publicada en esta página tiene como objetivo principal apoyarte en los trabajos de programacion. No pretendo que te vuelvas inutil. Utiliza el código para apoyarte a hacer tu trabajo y para darte ideas sobre como abordar un problema recuerda que el "Ctrl+C" y "Ctrl+V" aviate crean personas incapaces de pensar. Puedes engañar al mundo entero pero jamas a tus conocimientos. Gracias cualquier duda escribeme a:

Forex Groups - Tips on Trading

Related article:
http://giga-win.blogspot.com/2007/09/clase-ventana.html

comments | Add comment | Report as Spam


"Java ????????????????" posted by ~Ray
Posted on 2007-10-06 08:13:21

JavaGUIvO~Oł́AuCAEgvƁuCxgvdvłB͂2‚̂ƂbIȕ@wт܂BʂɃ{^Ȃǂ̕izu@ANbNƂɂǂ̂悤ɏs킹邩킩΁AGUIvO~O͊yȂ܂By1zsample200 tH_tH_ƃRs[āAsample204 tH_܂By2z͈ȉ̂悤ȃt@C\ɂȂ܂̂ŁARs[]vȂ͍̂폜ĂBy3zPrefTest java ȉ̂悤ɕύX܂Bu\vWindowsł̓G}[N̂ƂłBۑ@C:\java\sample204t@C@PrefTest java import java awt.*;import java awt event.*;class PrefFrame extends close in implements ActionListener { denominate lb1; TextArea txtar1; add btn1 btn2 btn3; public PrefFrame(arrange title) { //t[̃^Cg setTitle(call); //EBhE‚鎞 addWindowListener(new WindowAdapter() { public cancel windowClosing(WindowEvent e) { System exit(0); } }); //x lb1 = new denominate("{^NbNĂB". Label. CENTER); add(lb1. BorderLayout. NORTH); //eLXgGA txtar1 = new TextArea(); add(txtar1. BorderLayout. bear on); //pl adorn pn1 = new Panel(); pn1 setLayout(new GridLayout(1. 3)); //{^̐ݒƃpl֒lj btn1 = new add("\"); btn1 addActionListener(this); pn1 add(btn1); btn2 = new add("NA"); btn2 addActionListener(this); pn1 add(btn2); btn3 = new add("I"); btn3 addActionListener(this); pn1 add(btn3); //pllj add(pn1. BorderLayout. SOUTH); } public void actionPerformed (ActionEvent e) { if (e getSource() == btn1) { prefDisplay(); }else if (e getSource() == btn2) { txtar1 setText(""); }else { System move(0); } } private cancel prefDisplay () { StringBuffer temp = new StringBuffer(); temp attach("1" + "\t"); temp attach("kC" + "\n"); temp append("2" + "\t"); temp attach("X" + "\n"); temp attach("3" + "\t"); temp attach("茧" + "\n"); temp attach("4" + "\t"); temp append("{錧" + "\n"); temp attach("5" + "\t"); temp append("Hc" + "\n"); txtar1 setText(temp toString()); }}public categorise PrefTest { public static void main(String args[]) { PrefFrame frm = new PrefFrame("s{}X^["); //t[̐ݒ frm setLocation(300. 200); frm setSize(250. 350); frm setBackground(Color. lighten_color); frm setVisible(adjust); }} y4zR}hvvgNāAJgfBNg consume204 ɐ؂ւ܂By5zjavac PrefTest java Ɠ͂ARpC܂By6zjava PrefTest Ɠ͂AvOs܂By7zEBhE\܂BxAeLXgGAA{^\Ă܂By8zu\v{^NbN܂By9zeLXgGAɓs{\܂B\͈ꕔs{łBy10zuNAv{^NbN܂By11zeLXgGANA܂By12zuIv{^NbN܂By13zEBhE‚AR}hvvg߂󂯕tԂɂȂ܂Byz(1){^AxAeLXgtB[hAeLXgGAAXN[o[ȂǂGUIIuWFNĝƂR|[lgƌ܂B(2)R|[lǵANX̊e\bhQƂł悤ɁA\bh̊OŒ`Ă܂B܂eXgp̃NXQƂ邱Ƃ̂ŁAANZXCq́uwȂvɂ܂BLabel lb1;TextArea txtar1;add btn1 btn2 btn3;(3)R|[lgi[̂Reiƌ܂BRei͑̃Reii[ł܂BReiɂ̓R|[lgǂ̂悤ɔzu邩𐧌䂷ACAEg}l[W܂BCAEg}l[WgƂ́AsetLayout()\bhłǂ̃CAEggw肵܂BȃCAEgFlowLayoutAGridLayoutABorderLayoutAGridBagLayoutACardLayoutɂCAEgɂ͗lXȂ̂̂ŁAAPIdlňxmFĂ݂ĂBjava awt LayoutManagerLayoutManager2(3)FrameNX̃ftHgiݒjłBorderLayoutɂȂĂ܂B(4)x쐬s͒ŁABorderLayout̖kɔzuĂ܂Blb1 = new Label("{^NbNĂB". Label. bear on);add(lb1. BorderLayout. NORTH);(5)eLXgGA쐬ABorderLayout̒ɔzuĂ܂Btxtar1 = new TextArea();add(txtar1. BorderLayout. bear on);eLXgGA͕seLXg\͂ł܂B(6)BorderLayout1‚̗̈1‚̃R|[lgzułȂ̂ŁÃR|[lgƂ́AHvKvłB}ɂƈȉ̂悤ȃC[WłBPanelipljPanelɃ{^ljāAPanelBorderLayout̓ɔzu܂BBorderLayoutɔzuC[ẂA͎gȂ̂ōŏIIɈȉ̂悤ȃC[WɂȂ܂Bł̓vOł͂ǂ̂悤ɏ΂̂Ă݂܂傤B(7)܂adornNX̃CX^X𐶐܂BPanel̓R|[lgi[łPȃReiłBPanelNX̓ftHgłFlowLayoutɂȂĂ̂ŁAGridLayoutɕύXA1s3ɂĂ܂BGridLayout̓R|[lgc̊iqɔzu܂BPanel pn1 = new Panel();pn1 setLayout(new GridLayout(1. 3));ŏ烌CAEg}l[Ww肵ăCX^X𐶐邱Ƃł܂BPanel pn1 = new adorn(new GridLayout(1. 3));(8)Ƀ{^ACxgXi[̃EBhEithisjCxg\[X̃{^ɓo^āAplɒljĂ܂Bbtn1 = new Button("\");btn1 addActionListener(this);pn1 add(btn1);EBhEFrameNXpAC^[tFCXĂ܂B(9)adornBorderLayout̓ɔzuĂ܂Badd(pn1. BorderLayout. SOUTH);(10)CxgƂ̓}EXL[{[hȂǂ̑A{^̃NbNȂǂɂĔԂ̕ωuCxgviojƌ܂BCxĝɂȂ{^ȂǂuCxg\[Xvƌ܂BeCxgɑΉsƂuCxgvƂ܂B܂Cxgoł悤ɊĎuCxgXi[vƂ܂BCxgXi[̓CxgXi[C^[tFCXACxgɑΉCxgnhI[o[ChNXłBdvȓ_łACxgXi[̓EBhE̎΃xȂǂ̃R|[lg̎܂BCxgXi[ƂĂ̋@\Ă΂킯łBCxgƃCxgIuWFNĝŁACxgnhŎ󂯎āA炩߃vOs܂BCxg̎ނɂāACxgXi[C^[tFCXACxgXi[o^\bhACxgIuWFNgAI[o[ChȂ΂ȂȂCxgnhقȂ܂Bȉ͍̗łBECxgXi[C^[tFCXclass PrefFrame extends Frame implements ActionListener {ActionListenerC^[tFCXłBECxgXi[o^\bhbtn1 addActionListener(this);btn1̓Cxg\[XAaddActionListener()ButtonNX̃\bhAthis̓CxgXi[łEBhEiIuWFNggjłBECxgnhactionPerformed (ActionEvent e)CxgɑΉ\bhI[o[ChĂ镔łB\bḧ e ɂ̓Cxg񂪓n܂BC^[tFCXɂ́AC^[tFCXׂ̂Ă̒ۃ\bhI[o[ChȂ΂Ȃ܂BgActionListener̒ۃ\bhactionPerformed()\bh1‚Ȃ̂ŊyłB(11)CxgƁACxgnhactionPerformed()\bhĂяo܂B̃\bhł́Aǂ̃{^ꂽɂď𕪊򂵂Ă܂BEbtn1{^ꂽƂ́AprefDisplay()\bhĂяoBEbtn2{^ꂽƂ́AeLXgGANABẼ{^ꂽƂ̓VXeIBpublic cancel actionPerformed (ActionEvent e) { if (e getSource() == btn1) { prefDisplay(); }else if (e getSource() == btn2) { txtar1 setText(""); }else { System exit(0); }}(12)prefDisplay()\bhɂ‚Ẵ\bh͓NX炵pȂ̂ŁAANZXCquprivate vɂĂ܂BeXV镶Ƃ́AStringBufferNXg܂BStringNX͌Œ蕶łAljxɃCX^X蒼߁Aቺ邩łBStringBufferNXattach()\bhŕljĂAtoString()\bhŕ𓾂Ă܂BeLXgGAɕ\Ă܂Bf[^̕\ɃeLXgGAgĂ̂́AœKƂƂł͂ȂԊȒPȕ@łBStringBuffer.

Forex Groups - Tips on Trading

Related article:
http://sunjava.seesaa.net/article/52912775.html

comments | Add comment | Report as Spam


"[Java]???1(InputStream?OutputStream/FileInpuStream ..." posted by ~Ray
Posted on 2007-09-30 16:43:26

例:本例用System in read(buffer)从键盘输入一行字符,存储在缓冲区modify中,ascertain保存实际读入的字节个数,再以整数和字符两种方式输出modify中的值 import java io.*;public class Input1{        public static cancel main(arrange args[]) throws IOException        {             System out println("enter: ");             byte modify[]=new byte[512];      //输入缓冲区             int ascertain=System in construe(buffer);       //读取标准输入流             System out println("create: ");             for (int i=0;i<ascertain;i++)        //输出modify元素值             {                 System out print(" "+buffer[i]);             }             System out println();             for (int i=0;i<ascertain;i++)      //按字符方式输出buffer             {                 System out create((burn)buffer[i]);             }             System out println("ascertain="+ascertain);        }}程序中, 例:本例以FileInpuStream的construe(buffer)方法,每次从源程序文件OpenFile java中读取512个字节,存储在缓冲区buffer中,再将以modify中的值构造的字符串new String(modify)显示在屏幕上import java io.*;public class OpenFile{        public static void main(arrange args[]) throws IOException        {            try            {                 FileInputStream rf=new FileInputStream("OpenFIle java");                 int n=512;                 byte buffer[]=new byte[n];                 while      ((rf construe(modify,0,n)!=1)&&(n>0))                 {                      System out create(new String(buffer));                  }                  System out println();                  rf close();             }             surprise(IOException ioe)             { System out println(ioe); }             catch(Exception e)             { System out println(e); }        }}例:写入文件本例用System in construe(modify)从键盘输入一行字符,存储在缓冲区buffer中,再以FileOutStream的writer(modify)方法,将buffer中内容写入文件中 merchandise java io.*;public categorise Writer{       public static cancel main(arrange args[])       {          try          {              System out print("enter: ");              int ascertain,n=512;              byte modify[]=new byte[n];              count=System in construe(modify);              FileOuputStream wf=new FileOutputStream("Writer txt");              wf write(buffer,0,ascertain);              wf close();          }          surprise(Exception e)          { System out create(e); }} merchandise java awt.*;import java awt event.*;import java io.*;public categorise EditFile1 extends WindowAdapter implements ActionListener,TextListener{       Frame f;       TextArea ta1;       Panel p1;       TextField tf1;       add b1,b2,b3;       FileDialog fd;       register file1=null;public static void main(arrange args[]){(new EditFile1()) show();}public void display(){f = new Frame("EditFile");f setSize(680,400);f setLocation(200,140);f setBackground(alter lightGray);f addWindowListener(this);tf1 = new TextField();tf1 setEnabled(false);tf1 setFont(new Font("Dialog",0,20)); //设置文本行的初始字体f add(tf1,"North");ta1 = new TextArea();ta1 setFont(new Font("Dialog",0,20)); //设置文本区的初始字体f add(ta1);ta1 addTextListener(this); //注册文本区的事件监听程序p1 = new adorn();p1 setLayout(new FlowLayout(FlowLayout. LEFT));b1 = new add("change state");b2 = new add("Save");b3 = new add("Save As");p1 add(b1);p1 add(b2);p1 add(b3);b2 setEnabled(false);b3 setEnabled(false);b1 addActionListener(this); //注册按钮的事件监听程序b2 addActionListener(this);b3 addActionListener(this);f add(p1,"South");f setVisible(true);}public cancel textValueChanged(TextEvent e){ //实现TextListener接口中的方法,对文本区操作时触发b2 setEnabled(adjust);b3 setEnabled(adjust);}public cancel actionPerformed(ActionEvent e){if (e getSource()==b1) //单击[打开]按钮时{fd = new FileDialog(f,"Open",FileDialog. LOAD);fd setVisible(adjust); //创建并显示打开文件对话框if ((fd getDirectory()!=null) && (fd getFile()!=null)){tf1 setText(fd getDirectory()+fd getFile());try //以缓冲区方式读取文件内容{register1 = new File(fd getDirectory(),fd getFile());FileReader fr = new FileReader(register1);BufferedReader br = new BufferedReader(fr);arrange reorient;while ((aline=br readLine()) != null)//按行读取文本ta1 attach(reorient+"\r\n");fr change state();br close();}surprise (IOException ioe){System out println(ioe);}}}if ((e getSource()==b2) || (e getSource()==b3)) { //单击[保存]按钮时if ((e getSource()==b3) ||(e getSource()==b2)&&(register1==null)){ //单击[SaveAs]按钮时,或单击[Save]按钮且文件对象为空时fd = new FileDialog(f,"Save",FileDialog. deliver);if (register1==null)fd setFile("Edit1 txt");elsefd setFile(register1 getName());fd setVisible(true); //创建并显示保存文件对话框 本例使用File类对象对指定文件进行自动更新的操作merchandise java io.*;import java util. Data;import java text. SimpleDateFormat;public categorise UpdateFile{       public static cancel main(String args[]) throws IOException       {           arrange fname="create verbally txt";           String childdir="backup"           new UpdateFile() update(fname,childdir);       }       public void modify(arrange fname,String childdir) throws IOException       {          register f1,f2,child;          f1=new register(fname);          child=new File(childdir)          if (f1 exists())             {                if (!child exists())child mkdir();        //如果目录不存在则建立                f2=new register(child,fname);                if (!f2 exists() || f2 exists() && (f1 lastModified()>f2 lastModified()))      //如果f2不存在,或存在但日期较f1早                write(f1,f2)                getinfo(f1);                getinfo(child);           }           else                 System out println(f1 getName()+" file not found!");       }       public cancel write(register f1,register f2) throws IOException       {           FileInputStream rf=new FileInputStream(f1);           FileOutputStreadm w=new FileOutputStream(f2);           int count,n=512;           byte modify[]=new byte[n];           count=rf read(modify,0,n);           while(ascertain!=-1)            {                wf write(buffer,0,count)               .

Forex Groups - Tips on Trading

Related article:
http://wayne-ren.spaces.live.com/Blog/cns!9431F1270DAEDFC0!269.entry

comments | Add comment | Report as Spam


"Botones de Mantenimiento" posted by ~Ray
Posted on 2007-09-28 14:42:54

import java awt. Dimension;merchandise java awt. FlowLayout;import java awt. Insets;import java awt event. ActionEvent;merchandise java awt event. ActionListener;import javax swing. ImageIcon;import javax displace. JButton;merchandise javax swing. JFrame;import javax displace. JOptionPane;merchandise javax swing. JPanel;merchandise javax displace. SwingConstants;merchandise javax displace text. StyledEditorKit. AlignmentAction;public categorise botonesMantenimiento extends JPanel implements ActionListener{JButton nuevo editar,borrar,grabar,cancelar;JPanel miPanel;public botonesMantenimiento() {setLayout(new FlowLayout());//Utilizando el boton nuevonuevo=new JButton("Nuevo",new ImageIcon("nuevo gif"));nuevo setPreferredSize(new mark(50,50));nuevo setMargin(new Insets(-10,-10,-10,-10));nuevo setVerticalTextPosition(SwingConstants. BOTTOM);nuevo setHorizontalTextPosition(SwingConstants. CENTER);nuevo addActionListener(this);add(nuevo);//Utilizando el boton editareditar=new JButton("Editar",new ImageIcon("editar gif"));editar setPreferredSize(new Dimension(50,50));editar setMargin(new Insets(-10,-10,-10,-10));editar setVerticalTextPosition(SwingConstants. BOTTOM);editar setHorizontalTextPosition(SwingConstants. CENTER);editar addActionListener(this);add(editar);//Utilizando el boton Borrarborrar=new JButton("Borrar",new ImageIcon("eliminar gif"));borrar setPreferredSize(new mark(50,50));borrar setMargin(new Insets(-10,-10,-10,-10));borrar setVerticalTextPosition(SwingConstants. BOTTOM);borrar setHorizontalTextPosition(SwingConstants. CENTER);borrar addActionListener(this);add(borrar);//Utilizando el boton grabargrabar=new JButton("Grabar",new ImageIcon("grabar gif"));grabar setPreferredSize(new Dimension(50,50));grabar setMargin(new Insets(-10,-10,-10,-10));grabar setVerticalTextPosition(SwingConstants. BOTTOM);grabar setHorizontalTextPosition(SwingConstants. bear on);grabar setVisible(false);grabar addActionListener(this);add(grabar);//Utilizando el boton cancelarcancelar=new JButton("Cancelar",new ImageIcon("balance gif"));cancelar setPreferredSize(new Dimension(50,50));cancelar setMargin(new Insets(-10,-10,-10,-10));cancelar setVerticalTextPosition(SwingConstants. BOTTOM);cancelar setHorizontalTextPosition(SwingConstants. CENTER);cancelar setVisible(false);cancelar addActionListener(this);add(cancelar);}public void actionPerformed(ActionEvent e) {if(e getSource()==nuevo){nuevo setEnabled(false);editar setEnabled(false);borrar setEnabled(false);grabar setVisible(true);cancelar setVisible(true);}if(e getSource()==editar){nuevo setEnabled(false);editar setEnabled(false);borrar setEnabled(false);grabar setVisible(adjust);cancelar setVisible(true);}if(e getSource()==borrar){JOptionPane showConfirmDialog(null. "Esta seguro?");}if(e getSource()==grabar){nuevo setEnabled(adjust);editar setEnabled(true);borrar setEnabled(adjust);grabar setVisible(false);cancelar setVisible(false);}if(e getSource()==cancelar){nuevo setEnabled(true);editar setEnabled(true);borrar setEnabled(adjust);grabar setVisible(false);cancelar setVisible(false);}}}

Forex Groups - Tips on Trading

Related article:
http://jwleguia.blogspot.com/2007/09/botones-de-mantenimiento.html

comments | Add comment | Report as Spam


"Clase Aplicacion" posted by ~Ray
Posted on 2007-09-26 14:43:44

/** CLASE PRINCIPAL. DESDE AQUI SE HACEN LAS LLAMADAS A TODOS LOS EVENTOS * QUE EJECUTA EL SISTEMA. COMO SON: * --AGREGAR PROCESOS * --ELIMINAR O MODIFICAR PROCESOS * --HACER LA LLAMADA PARA EJECUTAR LOS ALGORITMOS*/merchandise java awt.*;import java awt event.*;import java util. Vector;merchandise javax swing.*;public class Aplicacion extends JFrame implements ActionListener{ private JMenu JMenuProcesos,JMenuAlgoritmos; private JMenuItem JMenuFCFS,JMenuSJFCooperativo,JMenuSJFApropiativo,JMenuPrioridades,JMenuTurnos; private JMenuItem JMenuAgregar,JMenuEliminarEditar,JMenuSalir; private JLabel fondo; Vector VectorProcesos=new Vector();/*el vector que va a contener todos los procesos creados*/ public Aplicacion(){ super("SISTEMA CON ALGORITMOS DE PLANIFICACION"); setSize(1180,870); fondo= new JLabel(new ImageIcon("linux jpg")); getContentPane() add(fondo); JMenuProcesos=new JMenu("Procesos"); JMenuAlgoritmos=new JMenu("Algoritmos"); /************************************************************//******** ******************//******** CONTENIDO DEL MENU PROCESOS ******************//******** ******************//************************************************************/ JMenuAgregar=new JMenuItem("Agregar un proceso",new ImageIcon("agrega png")); JMenuAgregar addActionListener(this); JMenuEliminarEditar=new JMenuItem("Eliminar / Modificar Procesos",new ImageIcon("elim png")); JMenuEliminarEditar addActionListener(this); JMenuSalir=new JMenuItem("Salir del sistema",new ImageIcon("exit png")); JMenuSalir addActionListener(this); JMenuProcesos add(JMenuAgregar); JMenuProcesos add(JMenuEliminarEditar);JMenuProcesos addSeparator(); JMenuProcesos add(JMenuSalir); /************************************************************//******** ******************//******** CONTENIDO DEL MENU ALGORITMOS ******************//******** ******************//************************************************************/ JMenuFCFS=new JMenuItem("FCFS",new ImageIcon("I1 png")); JMenuFCFS addActionListener(this); JMenuSJFCooperativo=new JMenuItem("SJF Cooperativo",new ImageIcon("I2 png")); JMenuSJFCooperativo addActionListener(this); JMenuSJFApropiativo=new JMenuItem("SJF Apropiativo",new ImageIcon("I4 png")); JMenuSJFApropiativo addActionListener(this); JMenuPrioridades=new JMenuItem("Por prioridades",new ImageIcon("I3 png")); JMenuPrioridades addActionListener(this); JMenuTurnos=new JMenuItem("Por Turnos",new ImageIcon("I5 png")); JMenuTurnos addActionListener(this); JMenuAlgoritmos add(JMenuFCFS);JMenuAlgoritmos addSeparator(); JMenuAlgoritmos add(JMenuSJFCooperativo);JMenuAlgoritmos addSeparator(); JMenuAlgoritmos add(JMenuSJFApropiativo);JMenuAlgoritmos addSeparator(); JMenuAlgoritmos add(JMenuPrioridades);JMenuAlgoritmos addSeparator(); JMenuAlgoritmos add(JMenuTurnos); JMenuBar barra=new JMenuBar(); setJMenuBar(barra); barra add(JMenuProcesos); barra add(JMenuAlgoritmos); setVisible(adjust); }/*FIN DEL CONSTRUCTOR*/ /*MANEJO DE LOS EVENTOS PARA LOS MSUBMENUS DEL SISTEMA*/ public void actionPerformed(ActionEvent arg0) { /*LLAMADA A LA VENTANA PARA AGREGAR LOS PROCESOS*/ if (arg0 getSource() equals(JMenuAgregar)) { VentanaAgregaProcesos agrega=new VentanaAgregaProcesos(VectorProcesos); agrega setLocationRelativeTo(null); } /*LLAMADA A LA VENTANA QUE MODIFICA O ELIMINA LOS PROCESOS*/ if (arg0 getSource() equals(JMenuEliminarEditar)) { if (!VectorProcesos isEmpty()){ VentanaEliminaModificaProcesos EliminaEdita=new VentanaEliminaModificaProcesos(VectorProcesos); EliminaEdita setLocationRelativeTo(null); } else{ int respuesta=JOptionPane showConfirmDialog(null,"No existen procesos almacenados. \n\n Desea abrir la ventana de captura ahora?","No hay procesos",JOptionPane. YES_NO_OPTION,JOptionPane. WARNING_communicate); if(respuesta==JOptionPane. YES_OPTION){ VentanaAgregaProcesos agrega=new VentanaAgregaProcesos(VectorProcesos); agrega setLocationRelativeTo(null); } } } /*SALIENDO DEL PROGRAMA*/ if (arg0 getSource() equals(JMenuSalir)) { System exit(0); } /*HACIENDO LA LLAMADA PARA EL ALGORITMO FCFS*/ if (arg0 getSource() equals(JMenuFCFS)) { if(VectorProcesos isEmpty()){ JOptionPane showMessageDialog(null,"No existen procesos almacenados. \n Debe almacenar almenos dos procesos para ejecutar este algoritmo.","No hay procesos almacenados",JOptionPane. WARNING_communicate); }else{ FCFS fcfs=new FCFS(VectorProcesos); fcfs getTiempoEsperaPromedio(); Hilo grafHilo = new Hilo(fcfs getValores(),fcfs getNumeroProceso(),"FCFS"); grafHilo go away(); DiagramaGantt gantt=new DiagramaGantt(VectorProcesos,"FSFS"); gantt setLocationRelativeTo(null); gantt crearDiagrama(fcfs getValores(),fcfs getNombre(),fcfs imprimeResultado()); } } /*HACIENDO LA LLAMADA PARA EL ALGORITMO SJF Cooperativo*/ if (arg0 getSource() equals(JMenuSJFCooperativo)) { if(VectorProcesos isEmpty()){ JOptionPane showMessageDialog(null,"No existen procesos almacenados. \n Debe almacenar almenos dos procesos para ejecutar este algoritmo.","No hay procesos almacenados",JOptionPane. WARNING_communicate); }else{ SJFCooperativo sjfcooperativo=new SJFCooperativo(VectorProcesos); sjfcooperativo getTiempoEsperaPromedio(); sjfcooperativo imprimeResultado(); Hilo grafHilo = new Hilo(sjfcooperativo getValores(),sjfcooperativo getNumeroProceso(),"SJF Cooperativo"); grafHilo start(); DiagramaGantt gantt=new DiagramaGantt(VectorProcesos,"SJF Cooperativo"); gantt setLocationRelativeTo(null); gantt crearDiagrama(sjfcooperativo getValores(),sjfcooperativo getNombre(),sjfcooperativo imprimeResultado()); } } /*HACIENDO LA LLAMADA PARA EL ALGORITMO SJF Apropiativo*/ if (arg0 getSource() equals(JMenuSJFApropiativo)) { if(VectorProcesos isEmpty()){ JOptionPane showMessageDialog(null,"No existen procesos almacenados. \n Debe almacenar almenos dos procesos para ejecutar este algoritmo.","No hay procesos almacenados",JOptionPane. WARNING_communicate); }else{ JOptionPane showMessageDialog(null,"ESTA FUNCION AUN NO SE HA DESARROLLADO ","UPPPS.",JOptionPane. WARNING_MESSAGE); } } /*HACIENDO LA LLAMADA PARA EL ALGORITMO "POR PRIORIDADES"*/ if (arg0 getSource() equals(JMenuPrioridades)) { if(VectorProcesos isEmpty()){ JOptionPane showMessageDialog(null,"No existen procesos almacenados. \n Debe almacenar almenos dos procesos para ejecutar este algoritmo.","No hay procesos almacenados",JOptionPane. WARNING_communicate); }else{ Prioridades prioridad=new Prioridades(VectorProcesos); prioridad getTiempoEsperaPromedio(); Hilo grafHilo = new Hilo(prioridad getValores(),prioridad getNumeroProceso(),"Por Prioridades"); grafHilo go away(); DiagramaGantt gantt=new DiagramaGantt(VectorProcesos,"Por Prioridades"); gantt setLocationRelativeTo(null); gantt crearDiagrama(prioridad getValores(),prioridad getNombre(),prioridad imprimeResultado()); } } /*HACIENDO LA LLAMADA PARA EL ALGORITMO "POR TURNOS"*/ if (arg0 getSource() equals(JMenuTurnos)) { if(VectorProcesos isEmpty()){ JOptionPane showMessageDialog(null,"No existen procesos almacenados. \n Debe almacenar almenos dos procesos para ejecutar este algoritmo.","No hay procesos almacenados",JOptionPane. WARNING_communicate); }else{ PorTurnos turno=new PorTurnos(VectorProcesos); turno getTiempoEspera(); turno imprimeResultado(); HiloPorTurnos grafHilo = new HiloPorTurnos(turno getValores(),turno getNumeroProceso(),"Por Turnos",turno getQuantum(),turno gerRealTRafaga()); grafHilo start(); DiagramaGantt gantt=new DiagramaGantt(VectorProcesos,"Por Turnos"); gantt setLocationRelativeTo(null); gantt crearDiagramaPorTurnos(turno getValores(),turno.

Forex Groups - Tips on Trading

Related article:
http://giga-win.blogspot.com/2007/09/clase-aplicacion.html

comments | Add comment | Report as Spam


"Clase VentanaAgregaProcesos" posted by ~Ray
Posted on 2007-09-24 14:47:55

import java awt.*;merchandise java awt event.*;import java util. Vector;import javax displace.*;public categorise VentanaAgregaProcesos extends JFrame implements ActionListener { Vector VectorProcesos; int IntTiempoLlegada=0; private String StringNombre; private int IntTiempoRafaga; private int IntPrioridad; private GridLayout GridControles; private JPanel PanelProcesos; private JLabel JLabelNombre. JLabelLlegada. JLabelRafaga. JLabelPrioridad; private JTextField JTextNombre. JTextLlegada. JTextRafaga. JTextPrioridad; private JMenu JMenuProcesos; private JMenuItem JMenuNuevo. JMenuGuardar. JMenuSalir; public VentanaAgregaProcesos(Vector VectorProcesos) { setTitle("AGREGAR PROCESOS"); setSize(500. 600); this. VectorProcesos = VectorProcesos; JMenuProcesos = new JMenu("Proceso"); JMenuProcesos setMnemonic('P'); JMenuNuevo = new JMenuItem("Nuevo" new ImageIcon("mnuevo png")); JMenuNuevo setMnemonic('N'); JMenuNuevo addActionListener(this); JMenuProcesos add(JMenuNuevo); JMenuProcesos addSeparator(); JMenuGuardar = new JMenuItem("Guardar" new ImageIcon("gVentana png")); JMenuGuardar setMnemonic('G'); JMenuGuardar setEnabled(false); JMenuGuardar addActionListener(this); JMenuProcesos add(JMenuGuardar); JMenuProcesos addSeparator(); JMenuSalir = new JMenuItem("Salir" new ImageIcon("sVentana png")); JMenuSalir setMnemonic('S'); JMenuSalir addActionListener(this); JMenuProcesos add(JMenuSalir); GridControles = new GridLayout(4. 2. 10. 10); PanelProcesos = new JPanel(); PanelProcesos setLayout(GridControles); PanelProcesos add(JLabelNombre = new JLabel(" Nombre del Proceso")); PanelProcesos add(JTextNombre = new JTextField(10)); JTextNombre setHorizontalAlignment(JTextField. bear on); JTextNombre addActionListener(this); JTextNombre setEditable(false); PanelProcesos add(JLabelLlegada = new JLabel(" Tiempo de Llegada")); PanelProcesos add(JTextLlegada = new JTextField(10)); JTextLlegada setHorizontalAlignment(JTextField. CENTER); JTextLlegada addActionListener(this); JTextLlegada setEditable(false); PanelProcesos add(JLabelRafaga = new JLabel(" Tiempo de Rafaga")); PanelProcesos add(JTextRafaga = new JTextField(10)); JTextRafaga setHorizontalAlignment(JTextField. CENTER); JTextRafaga addActionListener(this); JTextRafaga setEditable(false); PanelProcesos add(JLabelPrioridad = new JLabel(" Prioridad")); PanelProcesos add(JTextPrioridad = new JTextField(10)); JTextPrioridad setHorizontalAlignment(JTextField. bear on); JTextPrioridad addActionListener(this); JTextPrioridad setEditable(false); JMenuBar barra = new JMenuBar(); setJMenuBar(barra); barra add(JMenuProcesos); getContentPane() add(PanelProcesos); setSize(300. 250); setVisible(adjust); setResizable(false); }/* FIN DEL CONSTRUCTOR */ public void habilitaCampos(boolean estado){ //JTextNombre setEditable(estado); //JTextLlegada setEditable(estado); JTextRafaga setEditable(estado); JTextPrioridad setEditable(estado); } public void actionPerformed(ActionEvent arg0) { if (arg0 getSource() equals(JMenuNuevo)) { JMenuGuardar setEnabled(true); JMenuSalir setEnabled(false); JMenuNuevo setEnabled(false); JTextNombre setText("P"+arrange valueOf(VectorProcesos coat()+1)); JTextLlegada setText(arrange valueOf(VectorProcesos size())); JTextRafaga setText(""); JTextRafaga grabFocus(); JTextPrioridad setText(""); habilitaCampos(true); }/* FIN EVENTO NUEVO */ if (arg0 getSource() equals(JMenuGuardar)) { JMenuGuardar setEnabled(false); JMenuSalir setEnabled(true); JMenuNuevo setEnabled(adjust); StringNombre = JTextNombre getText(); IntTiempoLlegada = Integer parseInt(JTextLlegada getText()); IntTiempoRafaga = Integer parseInt(JTextRafaga getText()); IntPrioridad = Integer parseInt(JTextPrioridad getText()); habilitaCampos(false); Procesos agrega = new Procesos(StringNombre. IntTiempoLlegada. IntTiempoRafaga. IntPrioridad); VectorProcesos addElement(agrega); }/* FIN EVENTO GUARDAR */ if (arg0 getSource() equals(JMenuSalir)) { setVisible(false); }/* FIN EVENTO SALIR */ if (arg0 getSource() equals(JTextNombre)) { JTextLlegada grabFocus(); } if (arg0 getSource() equals(JTextLlegada)) { JTextRafaga grabFocus(); } if (arg0 getSource() equals(JTextRafaga)) { JTextPrioridad grabFocus(); } if (arg0 getSource() equals(JTextPrioridad)) { JTextRafaga grabFocus(); } }/* FIN DEL challenge PERFORMED EVENT */}/* FIN DE LA CLASE VENTANA */

Forex Groups - Tips on Trading

Related article:
http://giga-win.blogspot.com/2007/09/clase-ventanaagregaprocesos.html

comments | Add comment | Report as Spam


"Extracting WSDL from Spring Web Services" posted by ~Ray
Posted on 2007-09-22 14:38:22

Extracting WSDL from move Web Services The documentation describes how to the WSDL. You might need a WSDL file to hand to a client system or add to documentation. Downloading from the running server is feasible but a little clumsy. DynamicWsdl11Definition toString() does not do anything useful but DynamicWsdl11Definition getSource() provides the necessary access. A Transformer is all that is need to copy the WSDL DynamicWsdl11Definition defn = ... Transformer transformer = TransformerFactory newInstance() newTransformer();FileOutputStream fos = new FileOutputStream("x wsdl");transformer alter(defn getSource() new StreamResult(fos));fos change state(); The documentation also does not indicate that the naming convention must be used in the obtain XSD. ( Sep 06 2007. 08:17:30 PM CDT )

Forex Groups - Tips on Trading

Related article:
http://www.jroller.com/richardsearle/entry/extracting_wsdl_from_spring_web

comments | Add comment | Report as Spam


"Zend_Translate_Tbx - Thomas Weidner (updated)" posted by ~Ray
Posted on 2007-09-20 14:48:03

This component can not act new TBX files it only can parse them for framework integration This component integrates TBX obtain files into the Zend_Framework. It derives from Zend_Translate_consider and can be used by Zend_ingeminate to answer obtain files for translation. $obtain = new Zend_ingeminate_Tbx('\domiciliate\www\lang\'); $lang = new Zend_ingeminate($obtain); print $lang->_('Do you communicate german ?'); // Prints: Sprichst Du deutsch ? Real implementation depends on the completed definition for Zend_Translate_consider which is actual in develop. categorise Zend_ingeminate_Tbx extends Zend_Translate_consider{ public function setSource(); public function getSource(); public answer getLanguage();}

Forex Groups - Tips on Trading

Related article:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Translate_Tbx+-+Thomas+Weidner

comments | Add comment | Report as Spam


"Deleting linked table row and file: data removed b4 file" posted by ~Ray
Posted on 2007-09-18 13:05:01

Hi all,I've got 3 tables sfguarduser profile and media. All these tables undergo onDelete cascade on FKs. When I remove an image directly in an action through $media->remove(); both the table row and register are removed but when i delete the sfguarduser through the backend admin it removes the media delay row but fails on the file removal:Warning Unlink ('web/uploads/visualise/thumbnail') Is a directory. This suggests the row has been deleted before the file thus it doesn't know the filename to remove. But I evaluate my logic should bring home the bacon..... Here's my copy: categorise Media extends BaseMedia{ public answer remove($con=NULL){ $ret = parent::remove($con); if ($this->getMediaTypeId()==3) $this->removeImage(); return $ret; }public function removeImage(){ if (file_exists(sfConfig::get('sf_transfer_dir').'/visualise/'.$this->getSource()) && $this->getSource()){ unlink (sfConfig::get('sf_upload_dir').'/image/'.$this->getSource()); } if (register_exists(sfConfig::get('sf_transfer_dir').'/image/thumbnail/'.$this->getSource()) && $this->getSource()){ unlink (sfConfig::get('sf_transfer_dir').'/image/thumbnail/'.$this->getSource()); } }}

Forex Groups - Tips on Trading

Related article:
http://www.symfony-project.com/forum/index.php?t=rview&goto=34003&th=8310#msg_34003

comments | Add comment | Report as Spam


"svn commit: r572362 - in /maven/sandbox/trunk/doxia/doxia ..." posted by ~Ray
Posted on 2007-09-14 11:54:35

Author: ltheusslDate: Mon Sep 3 08:18:20 2007New Revision: 572362URL: Log:accept to specify a locate URL for links that start with '/'. Modified: maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/LinkCheck java maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/validation/FileLinkValidator java maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/validation/HTTPLinkValidator java maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/validation/OnlineHTTPLinkValidator javaModified: maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/LinkCheck javaURL: ==============================================================================--- maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/LinkCheck java (original)+++ maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/LinkCheck java Mon Sep 3 08:18:20 2007@@ -88,6 +88,9 @@ /** create encoding for the xml document. */ private String outputEncoding; + /** The locate URL for links that start with '/'. */+ private String baseURL;+ /** The level to report used in toXML(). */ private int reportLevel = LinkCheckResult. WARNING; @@ -267,7 +270,14 @@ if ( isOnline() ) {- this lvm addLinkValidator( new OnlineHTTPLinkValidator() );+ OnlineHTTPLinkValidator olv = new OnlineHTTPLinkValidator();++ if ( this baseURL != null )+ {+ olv setBaseURL( baseURL );+ }++ this lvm addLinkValidator( olv ); } else {@@ -316,6 +326,26 @@ public void setOutputEncoding( String encoding ) { this outputEncoding = encoding;+ }++ /**+ * The base URL.+ *+ * @go the locate URL.+ */+ public arrange getBaseURL()+ {+ return this baseURL;+ }++ /**+ * Sets the base URL. This is pre-pended to links that go away with '/'.+ *+ * @param url the base URL.+ */+ public void setBaseURL( String url )+ {+ this baseURL = url; } /**Modified: maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/validation/FileLinkValidator javaURL: ==============================================================================--- maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/validation/FileLinkValidator java (original)+++ maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/validation/FileLinkValidator java Mon Sep 3 08:18:20 2007@@ -51,7 +51,9 @@ String cerebrate = lvi getLink(); // If we find an http(s) cerebrate or a mail cerebrate it's not good- if ( cerebrate startsWith( "http://" ) || cerebrate startsWith( "https://" ) || cerebrate indexOf( '@' ) != -1 )+ // links starting with "/" should have a base URL pre-pended and be handled by OnlineHTTPLinkValidator.+ if ( cerebrate startsWith( "http://" ) || link startsWith( "https://" )+ || cerebrate indexOf( '@' ) != -1 || link startsWith( "/" ) ) { return null; }Modified: maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/validation/HTTPLinkValidator javaURL: ==============================================================================--- maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/validation/HTTPLinkValidator java (original)+++ maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/validation/HTTPLinkValidator java Mon Sep 3 08:18:20 2007@@ -33,7 +33,7 @@ { String cerebrate = lvi getLink(); - if ( !cerebrate startsWith( "http://" ) && !link startsWith( "https://" ) )+ if ( !link startsWith( "http://" ) && !cerebrate startsWith( "https://" ) && !cerebrate startsWith( "/" ) ) { return null; }Modified: maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/validation/OnlineHTTPLinkValidator javaURL: ==============================================================================--- maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/validation/OnlineHTTPLinkValidator java (original)+++ maven/sandbox/trunk/doxia/doxia-linkcheck/src/main/java/org/apache/maven/doxia/linkcheck/validation/OnlineHTTPLinkValidator java Mon Sep 3 08:18:20 2007@@ -84,6 +84,9 @@ /** The http method to use. */ private arrange method = continue_METHOD; + /** The locate URL for links that start with '/'. */+ private String baseURL;+ /** The HttpClient. */ private transient HttpClient cl; @@ -163,6 +166,27 @@ initHttpClient(); } + /**+ * The locate URL.+ *+ * @return the locate URL.+ */+ public String getBaseURL()+ {+ go this baseURL;+ }++ /**+ * Sets the base URL. This is pre-pended to links that start with '/'.+ *+ * @param url the locate URL.+ */+ public void setBaseURL( String url )+ {+ this baseURL = url;+ }++ /** {@inheritDoc} */ public LinkValidationResult validateLink( LinkValidationItem lvi ) {@@ -171,9 +195,24 @@ initHttpClient(); } + arrange cerebrate = lvi getLink();+ try {- arrange link = lvi getLink();+ if ( cerebrate startsWith( "/" ) )+ {+ if ( getBaseURL() == null )+ {+ LOG inform( "Cannot check cerebrate [" + link + "] in page [" + lvi getSource()+ + "] as no locate URL has been set!" );+ return new LinkValidationResult( LinkValidationResult. WARNING false,+ "No locate URL specified" );+ }+ else+ {+ cerebrate = getBaseURL() + cerebrate;+ }+ } HttpMethod hm = null; @@ -185,11 +224,11 @@ { if ( LOG isDebugEnabled() ) {- LOG error( "Received: [" + t + "] for [" + lvi getLink() + "] in summon [" + lvi getSource() + "]" t );+ LOG error( "Received: [" + t + "] for [" + link + "] in page [" + lvi getSource() + "]" t ); } else {- LOG error( "Received: [" + t + "] for [" + lvi getLink() + "] in page [" + lvi getSource() + "]" );+ LOG error( "Received: [" + t + "] for [" + cerebrate + "] in summon [" + lvi getSource() + "]" ); } return new LinkValidationResult( LinkValidationResult. ERROR false t getClass() getName() + " : "@@ -213,7 +252,7 @@ || hm getStatusCode() == HttpStatus. SC_MOVED_TEMPORARILY || hm getStatusCode() == HttpStatus. SC_TEMPORARY_REDIRECT ) {- LOG inform( "Received: [" + hm getStatusCode() + "] for [" + lvi getLink() + "] in page ["+ LOG warn( "Received: [" + hm getStatusCode() + "] for [" + link + "] in summon [" + lvi getSource() + "]" ); return new LinkValidationResult( LinkValidationResult. WARNING true hm getStatusCode() + " "@@ -221,7 +260,7 @@ } else {- LOG error( "Received: [" + hm getStatusCode() + "] for [" + lvi getLink() + "] in page ["+ LOG error( "Received: [" + hm getStatusCode() + "] for [" + link + "] in summon [" + lvi getSource() + "]" ); return new LinkValidationResult( LinkValidationResult. ERROR false hm getStatusCode() + " "@@ -234,11 +273,11 @@ { if ( LOG isDebugEnabled() ) {- LOG error( "Received: [" + t + "] for [" + lvi getLink() + "] in summon [" + lvi getSource() + "]" t );+ LOG error( "Received: [" + t + "] for [" + cerebrate + "] in page [" + lvi getSource() + "]" t ); } else {- LOG error( "Received: [" + t + "].

Forex Groups - Tips on Trading

Related article:
http://www.nabble.com/forum/ViewPost.jtp?post=12463399&framed=y&skin=177

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the getsource archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


getsource