Javap Tool application

Javap Tool application

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 Tutorials/Questions & Answers:
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
Advertisements
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
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
java tool
java tool  I installed edit plus tool but it couldn't compile and excute the coding ...how to retify that problem
Maven Web Application: Creating web application in Maven 3
How to create Maven based Web Application? You will learn to create web application using maven archetype. We are using the Maven 3 build tool... web application using maven tool. Here is the syntax of the command: mvn
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
ModuleNotFoundError: No module named 'tool'
ModuleNotFoundError: No module named 'tool'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'tool' How to remove the ModuleNotFoundError: No module named 'tool' error
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
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
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
ModuleNotFoundError: No module named 'android-tool'
ModuleNotFoundError: No module named 'android-tool'  Hi, My Python... 'android-tool' How to remove the ModuleNotFoundError: No module named 'android-tool' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'applause-tool'
ModuleNotFoundError: No module named 'applause-tool'  Hi, My... 'applause-tool' How to remove the ModuleNotFoundError: No module named 'applause-tool' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'checksum-tool'
ModuleNotFoundError: No module named 'checksum-tool'  Hi, My... 'checksum-tool' How to remove the ModuleNotFoundError: No module named 'checksum-tool' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'EDDIE-Tool'
ModuleNotFoundError: No module named 'EDDIE-Tool'  Hi, My Python... 'EDDIE-Tool' How to remove the ModuleNotFoundError: No module named 'EDDIE-Tool' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'EDDIE-Tool'
ModuleNotFoundError: No module named 'EDDIE-Tool'  Hi, My Python... 'EDDIE-Tool' How to remove the ModuleNotFoundError: No module named 'EDDIE-Tool' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'errata-tool'
ModuleNotFoundError: No module named 'errata-tool'  Hi, My Python... 'errata-tool' How to remove the ModuleNotFoundError: No module named 'errata-tool' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'god-tool'
ModuleNotFoundError: No module named 'god-tool'  Hi, My Python...-tool' How to remove the ModuleNotFoundError: No module named 'god-tool... to install padas library. You can install god-tool python with following
ModuleNotFoundError: No module named 'graph-tool'
ModuleNotFoundError: No module named 'graph-tool'  Hi, My Python... 'graph-tool' How to remove the ModuleNotFoundError: No module named 'graph-tool' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'landsat-L1-qa-tool'
ModuleNotFoundError: No module named 'landsat-L1-qa-tool'  Hi, My... named 'landsat-L1-qa-tool' How to remove the ModuleNotFoundError: No module named 'landsat-L1-qa-tool' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'lava-tool'
ModuleNotFoundError: No module named 'lava-tool'  Hi, My Python... 'lava-tool' How to remove the ModuleNotFoundError: No module named 'lava-tool' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'lava-tool'
ModuleNotFoundError: No module named 'lava-tool'  Hi, My Python... 'lava-tool' How to remove the ModuleNotFoundError: No module named 'lava-tool' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'morph-tool'
ModuleNotFoundError: No module named 'morph-tool'  Hi, My Python... 'morph-tool' How to remove the ModuleNotFoundError: No module named 'morph-tool' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'msgpack-tool'
ModuleNotFoundError: No module named 'msgpack-tool'  Hi, My Python... 'msgpack-tool' How to remove the ModuleNotFoundError: No module named 'msgpack-tool' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'netscaler-tool'
ModuleNotFoundError: No module named 'netscaler-tool'  Hi, My... named 'netscaler-tool' How to remove the ModuleNotFoundError: No module named 'netscaler-tool' error? Thanks   Hi, In your python

Ads