Home Answers Viewqa Swing-AWT Javap Tool application

 
 


Faiz Ahmad
Javap Tool application
2 Answer(s)      11 months ago
Posted in : Swing AWT

import java.awt.*; import java.lang.reflect.*; import java.awt.event.*; import java.awt.event.WindowListener.*; class Javap extends WindowAdapter implements ActionListener{ Button b; TextArea area; TextField tf; Javap(){ Frame f=new Frame(); Label l=new Label("Welcome to javap tool"); l.setBounds(100,50,300,30);

Label l1=new Label("Enter the class name"); l.setBounds(50,100,150,30);

tf=new TextField(); tf.setBounds(210,100,100,30);

b=new Button("View Details"); b.setBounds(150,150,100,40);

area=new TextArea(20,40); area.setBounds(50,210,300,300);

f.add(l); f.add(l1); f.add(tf); f.add(b); f.add(area); f.addWindowListener(this); b.addActionListener(this); f.setLayout(null); f.setVisible(true); f.setSize(500,500);

} public void actionPerformed(ActionEvent e) { if(e.getSource()==b) { String s=tf.getText(); String s1="";

Class c=Class.forName("s.Class");

Method m[]=c.getDeclaredMethods();

for(int i=0;i

area.append(m); area.append("\n"); }

} } public void windowClosing(WindowEvent e) { System.exit(0); }

public static void main(String args[]) throws Exception { new Javap(); } }

View Answers

June 8, 2012 at 8:54 PM


sorry for above question asked by me is wrongly paste the source code is below please provide me best answer:

import java.awt.*; import java.lang.reflect.*; import java.awt.event.*; import java.awt.event.WindowListener.*; class Javap extends WindowAdapter implements ActionListener{ Button b; TextArea area; TextField tf; Javap(){ Frame f=new Frame(); Label l=new Label("Welcome to javap tool"); l.setBounds(100,50,300,30);

Label l1=new Label("Enter the class name"); l.setBounds(50,100,150,30);

tf=new TextField(); tf.setBounds(210,100,100,30);

b=new Button("View Details"); b.setBounds(150,150,100,40);

area=new TextArea(20,40); area.setBounds(50,210,300,300);

f.add(l); f.add(l1); f.add(tf); f.add(b); f.add(area); f.addWindowListener(this); b.addActionListener(this); f.setLayout(null); f.setVisible(true); f.setSize(500,500);

}

public void actionPerformed(ActionEvent e) { if(e.getSource()==b) { String s=tf.getText(); String arg[]=new String[10]; arg[0]=s;

Class c=Class.forName(arg[0]);

Method m[]=c.getDeclaredMethods();

for(int i=0;i

System.out.println(m[i]); }

} }

public void windowClosing(WindowEvent e) { System.exit(0); }

public static void main(String args[]) throws Exception { new Javap();

} }


June 8, 2012 at 8:54 PM


sorry for above question asked by me is wrongly paste the source code is below please provide me best answer:

import java.awt.*; import java.lang.reflect.*; import java.awt.event.*; import java.awt.event.WindowListener.*; class Javap extends WindowAdapter implements ActionListener{ Button b; TextArea area; TextField tf; Javap(){ Frame f=new Frame(); Label l=new Label("Welcome to javap tool"); l.setBounds(100,50,300,30);

Label l1=new Label("Enter the class name"); l.setBounds(50,100,150,30);

tf=new TextField(); tf.setBounds(210,100,100,30);

b=new Button("View Details"); b.setBounds(150,150,100,40);

area=new TextArea(20,40); area.setBounds(50,210,300,300);

f.add(l); f.add(l1); f.add(tf); f.add(b); f.add(area); f.addWindowListener(this); b.addActionListener(this); f.setLayout(null); f.setVisible(true); f.setSize(500,500);

}

public void actionPerformed(ActionEvent e) { if(e.getSource()==b) { String s=tf.getText(); String arg[]=new String[10]; arg[0]=s;

Class c=Class.forName(arg[0]);

Method m[]=c.getDeclaredMethods();

for(int i=0;i

System.out.println(m[i]); }

} }

public void windowClosing(WindowEvent e) { System.exit(0); }

public static void main(String args[]) throws Exception { new Javap();

} }









Related Pages:
Javap Tool application
Javap Tool application  import java.awt.*; import java.lang.reflect.*; import java.awt.event.*; import java.awt.event.WindowListener.*; class Javap...; TextField tf; Javap(){ Frame f=new Frame(); Label l=new Label("Welcome to javap tool
Linking an Excel File with the Application tool
Linking an Excel File with the Application tool  I have to link an excel file with a application software which I am developing.I have this code which is only able to open a Jpanel to select the file.After I select the file
Linking excel file with a application tool using swing
Linking excel file with a application tool using swing  I have to link an excel file with my application software using java swing.As soon as i... for survey.After linking the tool must be able to take those questions and generate
appfuse tool - Ant
appfuse tool   I have using appfuse frame work tool and developing web application now iam doing project j2ee web application i didn't understand... develope coding using appfuse tool but i didn't understand UI jsp and mysql
CSS CUSTOMIZATION AUTOMATION TOOL
a tool or an application. That should allow me to enter all the styles in a single...CSS CUSTOMIZATION AUTOMATION TOOL  Hi all, I need your idea to develop a tool. I will brief the scenario to you. 1, Creating website using
CSS CUSTOMIZATION AUTOMATION TOOL
a tool or an application. That should allow me to enter all the styles in a single...CSS CUSTOMIZATION AUTOMATION TOOL  Hi all, I need your idea to develop a tool. I will brief the scenario to you. 1, Creating website using
How to generate reports dynamically using ireports tool in a web application?
How to generate reports dynamically using ireports tool in a web application?  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application?
How to generate reports dynamically using ireports tool in a web application?  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application?
How to generate reports dynamically using ireports tool in a web application?  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application?
How to generate reports dynamically using ireports tool in a web application?  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
How to generate reports dynamically using ireports tool in a web application
How to generate reports dynamically using ireports tool in a web application  Hi all, As part of my web application , i need to generate reports dynamically using ireport tool.. i have installed the tool and its working fine
BIRT reporting tool - Development process
BIRT reporting tool  How to call BIRT reports from jsp or servlets. what is the tree architecture? And what is the process to deploy BIRT project in tomcat server. just give small application to call BIRT reports from jsp
How to save user interface in flex for design tool
How to save user interface in flex for design tool  Hi I want to create a flex application "sticker design tool" in which i want to save all the caption/logos used with its properties like size,position,textcolor etc.,so when
GJTester - Java Unit Testing Tool
GJTester - Java Unit Testing Tool       GJTester, a general Java testing tool... or modules. The GJTester is a very efficient tool during the implementation, testing
java tool
java tool  I installed edit plus tool but it couldn't compile and excute the coding ...how to retify that problem
Dojo Tool tips
Dojo Tool tips           In this section, you will learn about the tool tips and how to developed it in dojo.  Tool tips :  This is a GUI
Dojo Tool tips
Dojo Tool tips           In this section, you will learn about the tool tips and how to developed it in dojo.  Tool tips :  This is a GUI
JS-Sorcerer: JavaScript Development Tool
JS-Sorcerer: JavaScript Development Tool       JavaScript Reporter finds problems... or Ajax application, and less time testing and debugging it. Read about its
Eclipse Plunging/Tool
Eclipse Plunging/Tool   ... application aside of Eclipse but it can of course be used as a plugin inside... Generation The COMPORSYS Code Generation Tool Plug-In for Eclipse empowers
Clickable chart with Tool Tip
Clickable chart with Tool Tip  Can we generate the charts with tooltip and onclick events using jfreechart in jsps and servlets
The iPad is a Popular Tool for Business Needs
The iPad is a Popular Tool for Business Needs There are all sorts of fun... business applications as: The Pages tool can be used to help with getting... is a great tool to see. It is one that features a series of tools that are used
Tool In JAVA - CVS
Tool In JAVA  Hai this is JAGADHISH Iam learning cvs tool.If anybody have related material or examples for this CVS tool plz send me.Thank you(in advance).  Hi friend, For read more information to visit this link
Tool Tip on HTML
Tool Tip on HTML  How to add Tool Tip On Html   <img title="Beatiful Flower" src="images.jpg"> <form><input type="text" size=25 title="Enter your email address here"> <input type="button
java tool - Java Beginners
java tool  HI,i'm doing a project to implement BASIS PATH TESTING..so,i want a java tool which takes the c-program as the input n converts it into a control flow graph...can anyone suggest? thanking you
java tool - Java Beginners
java tool  HI,i'm doing a project to implement BASIS PATH TESTING..so,i want a java tool which takes the c-program as the input n converts it into a control flow graph...can anyone suggest? thanking you
JAVA Debug tool
" com.debugtools.jdebugtool.Main That works fine and starts the Debug tool. I mount a source path and try... is that appearing inspite of invoking the tool with command prompt ? Finally , Am unable
Compiling and testing the application
Compiling and testing the application       In this application we will compile and deploy the application on tomcat. You can download the full running code of the application
java web application - Ant
(1.4.2),weblogic(8.1),MyEclipse(5.5)and my build tool is ant-1.7.1. Can any one tell me the steps to build and deploy a small web application on MyEclipse?(like... following points to help in create a weblogic application. 1)Install
Find Your Way with a Map Mobile Application
Find Your Way with a Map Mobile Application Keeping tabs on how to get from one place to another is important to do. This is why a map mobile application is such a valuable tool to use for any mobile device. This is a type
current application cursor - Java Beginners
current application cursor  Hi all, I want to design one tool for that i need to find out the application in which is running among other application.(if currently three application is running means i want to find out
Excel conversion tool. - Java Beginners
Excel conversion tool.  Hi, I need a conversion tool which can convert .xls(Excel 2003) to .xlsx (Excel 2007) and vice-versa. Please suggest any links ro tools. Thank You
Reporting tool for sqlserver2000 with java or jsp
Reporting tool for sqlserver2000 with java or jsp  Hi to all ,Is there any Reporting tool to make report from sqlserver2000 as a database.... There is one nice tool which can be used to write jasper report. Read more about Jasper
how to apply tool bar with textarea in jsp
how to apply tool bar with textarea in jsp  how to apply tool bar with textarea in jsp
Dojo Tool tips
Dojo Tool tips          In this section, you will learn about the tool tips and how to developed it in dojo.  Try Online: Tool Tips Tool tips :  This is a GUI
iPad Application Development India
utility tool, iPad social networking application and iPad games. Here...iPad Application Development India Apple Inc. on April 03, 2010 launched..., sending emails and social networking. Moreover, any application that has been

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.