Home Answers Viewqa Spring Java Spring Desktop application with multiple classes and jframe

 
 


pavan deepak
Java Spring Desktop application with multiple classes and jframe
0 Answer(s)      a year and 6 months ago
Posted in : Spring

Hi i am developing a desktop java spring application..It has many Jframes forms and classes...How to close one Jframe from another..Please tell...

First jframe

package desktopapplication2; import java.awt.Graphics; import java.io.FileNotFoundException; import java.io.IOException; import java.lang.management.ManagementFactory; import com.sun.management.OperatingSystemMXBean; import com.sun.servicetag.SystemEnvironment; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.StringTokenizer; import java.util.logging.Level; import java.util.logging.Logger;

public class NewJFrame1 extends javax.swing.JFrame {

/** Creates new form NewJFrame1 */
public NewJFrame1() {
    initComponents();
    GetSystemInfo();
     try {

        GetBiosInfo();
        GetMemInfo();
        GetCPUInfo();// TODO add your handling code here:
          } 
     catch (Exception ex) {
        Logger.getLogger(MainScreen.class.getName()).log(Level.SEVERE, null, ex);
    }
}

private void jLabel3MouseClicked(java.awt.event.MouseEvent evt) {

             Touchscreen t = new Touchscreen(); **---->This is not disposing Jframe2**
              t.dispo();

}

Second Jframe

package desktopapplication2;

import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.Timer;

public class Touchscreen extends JFrame {

/** Creates new form Touchscreen */
public Touchscreen() {
    initComponents();
    jLabel2.setVisible(false);
    this.setTitle("Touchscreen Test");
    jLabel1.setText("Testing Touchscreen");
    deletefile();
   this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    tc.start();
}

public void Touchscreen_dispo() { dispose(); ---->Even though this function is called,this Jframe is not disposing or hiding.. }

}

View Answers









Related Pages:
Java Spring Desktop application with multiple classes and jframe
Java Spring Desktop application with multiple classes and jframe  Hi i am developing a desktop java spring application..It has many Jframes forms and classes...How to close one Jframe from another..Please tell... First jframe
Java Spring Desktop application
Java Spring Desktop application  Hi i am developing a desktop java spring application..It has many Jframes forms and classes...How to close one Jframe from another..Please tell... First jframe package desktopapplication2
Problem in setting IP address for a JFrame Class Desktop Application
Problem in setting IP address for a JFrame Class Desktop Application  I have designed a browser for our final year project, it is working well. But when we put it in a system which has a proxy setting for internet connection
java desktop - Java Beginners
java desktop  Hi, Iam created a desktop login application using... SUBMIT; JFrame f; JLabel label1,label2; final JTextField text1; final JPasswordField text2; LoginDemo(){ f=new JFrame(); f.getContentPane().setLayout
java desktop - Java Beginners
java desktop  Hi, Iam created a desktop login application using... SUBMIT; JFrame f; JLabel label1,label2; final JTextField text1; final JPasswordField text2; LoginDemo(){ f=new JFrame(); f.getContentPane().setLayout
Simple Java Desktop Upload application
Simple Java Desktop Upload application  I try do simple example for upload applicationtake file from c:\ put to d:\ :) PLEASE HELP
JFrame
JFrame  write an application with a JFrame that five labels describing reasons that a customer might not buy your product(for example "Too expensive") every time the user clicks a Jbutton, remove one of the negative reasons
JFrame
JFrame  Hi, I have JFrames in my application and i'm developing application using NetBeans IDE 6.5. I have many jframes. Whenver i click a menu... Jframe. How can i do it. Please help me to do it. Or what else can i have
Questions on Spring - Spring
Questions on Spring  1> what is Spring Framework ? why does... in Spring ? 3> what is Spring - Aspect Oriented Programming,Please explain with a working Example for Spring - Aspect oriented Programming Concept.?  
jframe
jframe  how to create a jframe.provide me the java code pls
Create a Desktop Pane Container in Java
Create a Desktop Pane Container in Java   ... pane container in Java. The desktop pane container is a container, which has.... The desktop pane is like a MDI (Multiple Document Interface) frame and all internal
Java application that uses the classes and
Java application that uses the classes and   i have this class diagram with three classes: Curriculum, Course, and Lecture. Your class diagram...) I wish Write a Java application that uses the classes and methods above
desktop application
desktop application  how to transfer data swing text field to browser text field to their corresponding label/caption. please reply as soon as possible. thanks vijay
An introduction to spring framework
, Spring suggests that we make use of ordinary Java beans, with some slight... the criticisms. There is a debate going on in the Java community about Spring... of OOP. d) It is flexible. Spring's goal is to be an entire Application
How to create file from input values in Jframe ?
How to create file from input values in Jframe ?  hi i m doing my project using java desktop application in netbeans.i designed a form to get... an object for it.my java code is public class submit { JFrame frame; JTextArea
java program to read multiple files from a directory and display them on a jframe
java program to read multiple files from a directory and display them on a jframe  hi guys i want to write a java program that will read all files in a directory and display them one by on on a jframe on jpanel with specific key
DESKTOP SHARING USING JAVA
DESKTOP SHARING USING JAVA  Sir i have the following code for scren... extends JFrame implements Serializable{ ServerSocket serverSocket; Socket socket... image; File file; JFrame frame; RemoteDesktopServer server; //static Vector<
Spring Web Annotation Classes
Spring Web Annotation Annotation is introduced since java 5. It is a new kind... and it is not a part of your program. Spring framework also provides a wide range of annotation, some of them which is commonly is used in Spring MVC is explained
EasyEclipse Desktop Java
EasyEclipse Desktop Java       EasyEclipse Desktop Java For development of Desktop... for Windows - Run Java application on Sun Java(tm) runtime, packaged
ClassNotFound Exception:DispatcherServlet in spring application?
ClassNotFound Exception:DispatcherServlet in spring application?  **I... environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.001\bin...: false repositories: /WEB-INF/classes/ ----------> Parent Classloader
Remote mobile desktop - MobileApplications
Remote mobile desktop  I am doing my research to implement a java mobile application to access another remote mobile phone with the authentication.This application will have to use the service provider's network and a server
how to add scrollbar to JFrame
how to add scrollbar to JFrame  hello friends i am making a java application in which i have a frame to which i wanted to add scrollbars but when i add my panel to scrollpane and then add that scrollpane to JFrame than
how to add scrollbar to JFrame
how to add scrollbar to JFrame  hello friends i am making a java application in which i have a frame to which i wanted to add scrollbars but when i add my panel to scrollpane and then add that scrollpane to JFrame than
how to add scrollbar to JFrame
how to add scrollbar to JFrame  hello friends i am making a java application in which i have a frame to which i wanted to add scrollbars but when i add my panel to scrollpane and then add that scrollpane to JFrame than
how to add scrollbar to JFrame
how to add scrollbar to JFrame  hello friends i am making a java application in which i have a frame to which i wanted to add scrollbars but when i add my panel to scrollpane and then add that scrollpane to JFrame than
how to add scrollbar to JFrame
how to add scrollbar to JFrame  hello friends i am making a java application in which i have a frame to which i wanted to add scrollbars but when i add my panel to scrollpane and then add that scrollpane to JFrame than
java spring simple application
java spring simple application  hai I have design a simple application in this I always found class not found exception. I am sendig code as follows.../beans/spring-beans-2.5.xsd"> <bean id="studbean" class="StudentComponent
Spring Tutorial
, Download Spring. What is Spring ? Spring is an application framework for developing Java Enterprise applications. Developers in a mass level choose Spring... application using Spring framework. Some of these features are as follows
Spring Console
Spring Console         The Spring Console is a FREE standalone Java Swing application... Library files. The Spring Console also plugs into multiple, popular Java IDEs
Classes in Java
Classes in Java      ... java have mechanisms for handling exceptions. This is known as catching exception in Java. The exceptions that occur in the program can be caught using try
display multiple images from postgres database in jframe
display multiple images from postgres database in jframe  i just want to display multiple images on jframe by firing a query on postgres database
path setting for tomcat to java for Desktop PC - JDBC
path setting for tomcat to java for Desktop PC  Hi sir, I want to connect my java programms to Database which of either sql,oracle,mysql... or configuration about the Tomcat Server in Java. Kindly visit them . We hope
multiple inheritance
multiple inheritance  why java doesn't support multiple inheritance? we can achieve this by using interface but not with classes? what is the main reason that java community implemented like
Spring Framework, Spring Framework in Java
of Enterprise Java applications. Now a days Spring Framework is one of the most... Framework is an open source application development framework for Java. The first... classes for writing and executing the test cases The Spring IOC module
ssl comunication between a desktop application and a web application
ssl comunication between a desktop application and a web application  Hi Lusiano, I am trying to implement a ssl comunication between a desktop application and a web application. can you please share code with me. Please
Multiple Inheritance
Multiple Inheritance  All are saying java doesn't support multiple... classes and we can extend at most one class so each class can extend more than one class so java any how do multiple inheritance? Can you please explain
How to launch my web application from my desktop without opening Netbeans IDE everytime i run the application?
How to launch my web application from my desktop without opening Netbeans IDE... dont want all these steps, so i knw that java application can be launched using Java Web Start but dont knw abt web application, Is there any way to do
Using the Desktop class to launch a URL
a specified area on JFrame. In Java, javax.swing package provides...Using the Desktop class to launch a URL with default browser...; Using the Desktop class to launch a URL with default
multiple inheritance - Java Beginners
)why java classes does not support Multiple Inheritance? JAVA CLASSES ONLY... Inheritance. Ans...>java classes doesn't support multiple inheritance,the practical.... } That's why java classes does not support multiple inheritance.But java interfaces
java--desktop appilication - JDBC
java--desktop appilication  when class.forName() is called ,,,a class is loaded...once after the class is loaded ..if we call class.forName, it will call the class which is already present.......what to do if we want to load
Exception when opening a excel file in JFrame
() throws ExcelException{ JFrame frame= new JFrame("Test application... a problem when trying to display a Excel file in a Jframe. The exception is like... (jniwrap.dll) in java.library.path: C:\Program Files\Java\jdk1.7.0_05\bin;C
Spring Training
for the java programmers looking for a start up in the Spring Framework and use... spring with advance Java Technologies  Developing Spring based... Spring Framework Training for the Developers   
Spring or JDBC - Spring
Spring or JDBC  I am designing a simple java application... this java application on an IBM mainframe using the IBM JVM called JZOS. My initial... but was told to investigate using Spring framework. We use Spring framework for our
spring
spring  sir how to access multiple jsp's in spring
Introduction to spring 3, Spring framework 3
framework such as Struts along with Hibernate or JPA in your application. The Spring... on the Spring classes. While some of the code of the integration layer such as data access... classes in enterprise application development. You can POJO classes to create
what is diffrence between the spring and ejb which is better for small application - Spring
appplication.what is diffrence between the struts with spring application and struts without... is an open source application for the Java platform whereas EJB is a server-side...what is diffrence between the spring and ejb which is better for small
The Complete Spring Tutorial
application. Spring framework is developed to simplify the developed... application easy work. In this Spring tutorial series we will learn Spring... enhancements and support for the Java 5.   Spring 3.0 Features
jsp and spring integration - Spring
jsp and spring integration  I am trying to integrate my jsp script to an application developed in spring framework and webworks. I am passing... application which should accept these parameters and authenticate the users login
Spring cglib2
. It is used to extend Java classes and implement interfaces in runtime... and commercial purposes. Spring 3 framework uses cglib2 for manipulating the Java classes in runtime. The cglib library is not included in Spring 3.0
JFRAME - Java Beginners
javax.swing.*; import java.awt.event.*; public class MenuExample extends JFrame