I have an application,i want to call web services methods to a swing application,how to call that methods ? i have a frame in that Drug1,drug2,vehicle1,vehicle2 and solutions are labels and their corresponding textfields, i can fill the data into textfields and send submit button,the data will be stored in a Table.from that table i will provide one hyperlink in one cell and click that link it will go to another dialog box (the selected row from the Table will be displayed on next dialog box) and it will call web services methods mentioned below and that same window i want to show the details of the drug,vehicle and solution like study period,physical compatibility,containers and storage conditions.
public List setParams(String s_administrationMethod,String s_drug1Id,String s_drug2Id,boolean b_IgnoreOptional,String s_solutionId,String s_vehicle1Id,String s_vehicle2Id)
public StandardPanel firstPanel() { StandardPanel firstPanel1 = new StandardPanel(); StandardPanel panel = new StandardPanel(); panel.setLayout(null); panel.setBounds(0,0,550,470);
StandardPanel secondPnl = new StandardPanel(); secondPnl.setLayout(null); secondPnl.setBounds(206,50,375,210); secondPnl.setBorder(BorderFactory.createLineBorder(Color.gray,1));
drug1 = new StandardLabel("* Drug 1: "); drug1.setBounds(15,40,70,20); secondPnl.add(drug1); _drug1 = new StandardTextField(10); _drug1.setText(""); _drug1.setBounds(95,40,150,20); secondPnl.add(_drug1);
vehicle1 = new StandardLabel(" Vehicle 1:"); vehicle1.setBounds(15,65,90,20); secondPnl.add(vehicle1); _vehicle1 = new StandardTextField(10); _vehicle1.setText(""); _vehicle1.setBounds(95,65,150,20); secondPnl.add(_vehicle1);
drug2 = new StandardLabel("** Drug 2:"); drug2.setBounds(15,90,70,20); secondPnl.add(drug2); _drug2 = new StandardTextField(10); _drug2.setText(""); _drug2.setBounds(95,90,150,20); secondPnl.add(_drug2);
vehicle2 = new StandardLabel(" Vehicle 2: "); vehicle2.setBounds(15,115,90,20); secondPnl.add(vehicle2); _vehicle2 = new StandardTextField(10); _vehicle2.setText(""); _vehicle2.setBounds(95,115,150,20); secondPnl.add(_vehicle2);
solution2 = new StandardLabel("** Solution: "); solution2.setBounds(15,140,100,20); secondPnl.add(solution2); _solution = new StandardTextField(10); _solution.setText(""); _solution.setBounds(95,140,150,20); secondPnl.add(_solution);
StandardPanel thirdPnl = new StandardPanel(); thirdPnl.setLayout(null); thirdPnl.setBounds(20,265,520,90);
required = new StandardLabel(" * Required "); required.setBounds(180,7,90,20); thirdPnl.add(required);
eitherASolutionOrDrug2IsRequired = new StandardLabel(" ** Either a solution or drug 2 is required "); eitherASolutionOrDrug2IsRequired.setBounds(255,7,240,20); thirdPnl.add(eitherASolutionOrDrug2IsRequired);
clearAll = new StandardButton(); clearAll.setText("Clear All"); clearAll.addActionListener(this); clearAll.setBounds(235,40,100,25); thirdPnl.add(clearAll);
checkCompatibility = new StandardButton(); checkCompatibility.setText("Check Compatibility"); checkCompatibility.addActionListener(this); checkCompatibility.setBounds(340,40,150,25); thirdPnl.add(checkCompatibility);
label2 = new StandardLabel("and 2 Incompatible study result(s). Click on a study to view details "); label2.setFont(new Font("Arial",Font.BOLD,11));
label1 = new StandardLabel("15 Compatible study result(s) Click on a study to view details."); label1.setFont(new Font("Arial",Font.BOLD,11)); label1.setBounds(5,65,350,20); firstPnl1.add(label1);
resultTable = new StandardTable(); resultTable.setModel(model);
please help me how to call that web services to a swing application and use that code i want to show the details of the corresponding drugor vehicle or solution with details.
thank you in advance
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35222
7
posted
0
That's far too much code to expect anyone to try to read and understand: IsolateTheProblem
The code is also essentially unreadable, because you don't UseCodeTags.
As an aside, SwingIsAProperNoun. [ August 09, 2008: Message edited by: Ulf Dittmer ]