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;
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
Ads
Related Tutorials/Questions & Answers:
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
Advertisements
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
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
Spring login form application
Spring login form application Hi Please give me the
Spring login form
application so that i can understand its flow ?
Hi please find the link of the tutorial
Spring Applications
Spring Boot Console Application
Spring Boot Tutorial-
Spring Boot Console
Application
Welcome to the first example of
Spring Boot, today we will teach you to
create your first
application...-based
application that
prints messages on console using the
Spring Boot.
We
Spring Boot Console Application
Spring Boot Tutorial-
Spring Boot Console
Application
Welcome to the first example of
Spring Boot, today we will teach you to
create your first
application...-based
application that
prints messages on console using the
Spring Boot.
We
Java Spring
Java Spring Hi,
What is
Java Spring?
Thanks
DESKTOP SHARING USING JAVA
DESKTOP SHARING USING JAVA Sir i have the following code for scren capturing it is capturing in png format but when i am sending it over other m/c it is taking delay of around 16 seconds..i think it is because this line of code
Java Spring Framework
is term used by developers for a
Application development in
Java, the
Spring...
Java Spring Framework Hi,
I have learned Core
Java and Advanced
Java. Now looking to learn more frameworks. What is
Java Spring Framework
Java Spring Framework
is term used by developers for a
Application development in
Java, the
Spring...
Java Spring Framework Hi,
I have learned Core
Java and Advanced
Java. Now looking to learn more frameworks. What is
Java Spring Framework
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... org.apache.catalina.core.ApplicationContext log
INFO: Initializing
Spring FrameworkServlet 'dispatcher
Java Application
Java Application Hi,
What is the applications of
Java in development of software? What type of applications can be developed using
Java programming Language?
Can anyone tell me the url for downloading sample projects in
Java
Spring, Hibernate login and registration application
Spring, Hibernate login and registration
application
Spring, Hibernate login... fully function login and registration
application in
Spring
and Hibernate... experience of Web
application development
Well versed with the
Core
Java
New to Java programming
, Mobile
Application.
So, first thing in learning the
Java programming language... the JDBC API for creating database driven web or
desktop applications in
Java...
- These are the example of 2D graphics programming in
Java.
Web
Application Development
Ask Spring Questions Online
;
Spring is an open source
application Framework for
Java platform and .NET Framework. The prime feature of
Spring... of or with (Enterprise JavaBean) model.
Spring Framework is widely used by
Java
Java program to get the desktop Path
Java program to get the
desktop
Path
 ... the
desktop path
of the system. In the
java environment we can get the
desktop path also with the
system's property. For getting the
desktop path we have to add
Batch file for java application
Batch file for
java application please tell me how to create the batch file for
java application(using swings).the
application is created with netbeans
java reminder Application
java reminder Application Create an awt
application which imitates a reminder
application,that stores notes and specify date and time to be reminded