Home Answers Viewqa Java-Beginners Java Spring Desktop application

 
 


pavan deepak
Java Spring Desktop application
0 Answer(s)      a year and 5 months ago
Posted in : Java Beginners

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
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
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
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
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
java desktop - Java Beginners
java desktop  Hi, Iam created a desktop login application using swings. pls observe the following code: import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; class LoginDemo{ JButton
java desktop - Java Beginners
java desktop  Hi, Iam created a desktop login application using swings. pls observe the following code: import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; class LoginDemo{ JButton
EasyEclipse Desktop Java
EasyEclipse Desktop Java       EasyEclipse Desktop Java For development of Desktop... for Windows - Run Java application on Sun Java(tm) runtime, packaged
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
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
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
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
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
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
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
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
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
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.?  
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
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
spring
spring   i am a beginner in java.. but i have to learn spring framework.. i know the core java concepts with some J2EE knowledge..can i learn spring without knowing anything about struts
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
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
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
spring
normally. i set the classpath=D:\java softwares\ST-IV\Spring\spring-framework-2 .5.1\dist\spring.jar;D:\java softwares\ST-IV\Spring\spring-framework-2.5.1\lib\c ommonj\commonj-twm.jar;D:\java softwares\ST-IV\Spring\spring-framework-2.5.1\lib
Spring application in RSA 7.0.0.3
Spring application in RSA 7.0.0.3  how to build a sample spring application using RSA 7.0.0.3
spring - Spring
spring  Hi sir how compile spring application on jboss5.1.0 server how run spring application on jboss5.1.0 server thanks
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
Works when run from desktop but....
Works when run from desktop but....  I used the code provided here for a pie chart using swing in Java, and when I saved it to my desktop, it ran fine, and worked as explained, but then I tried to add the same code to NetBeans
spring - Spring
spring  what is the use of spring  Hi Friend, Spring is grate framework for development of Enterprise grade applications. Spring.... Spring can be used to configure declarative transaction management, remote access
What is the structure of Spring framework?
by you as per you application requirement. For more related to Java Spring... of Spring framework?   Hi, In Java Spring framework offers one-stome solutions for all you enerprise application. The Spring is nothing but a modular
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
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... the beans and its dependency in the application. the latest version of Spring
How to add a bean in spring application?
How to add a bean in spring application?  Hi, How to add a bean in spring application? Thanks
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
For CRUD application - Spring
For CRUD application  Hi, Can i have Crud(create ,edit,update,delete the data in database ) code & search the eployee using "id or name" using Spring ,Hibernate and Mysql Thanks Raghavendra
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
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... under the desktop pane. Following figure shows the JDesktopPane component of Java
java programming please - Spring
java programming please  please i want your help :-( using JCreator program Your local bank has contracted you to design a Java application that will process saving account data for a given customer in a given year
Java Spring Online Training
Java Spring Online Training Java spring training online is sought... kinds of java developments. A java spring Framework online training enables... that the students and learners can experience the various nuances of Java Spring
Java Spring Framework Programmer
Java Spring Framework Programmer        Position Vacant: Java Spring Framework Programmer...; Reference ID: Java Spring Framework Programmer
Spring 3.0 features
are Java 5 support and REST Webserivces support. Spring 3 requires Java 5 or above, so you can't run Spring 3.0 based application if the JDK version not Java 5... Webservices Java 5 support - Now Java 5 or above is needed to run Spring 3 based
Web application - Spring
Web application  I need one simple complete web application example using springs with database connection,i saw ur demo but it is not succfient.can u send to raghavendra@oneapps.com.I am a beginner
Simplified Application Development with Struts, Hibernate and Spring
Simplified Application Development with Struts, Hibernate and Spring... Java Servlets, Java Beans, XML helps in effective development of web application... based web application by combining all the three mentioned frameworks e.g. Struts
Spring - Spring
Spring  Hai,This is jagadhish.Iam learning Spring.While developing a Basic application I got a warning type error.That is,SAX parser error,jdk1.4+.............like that error.My application files are as followes (1)Demo.xml
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   
Adding Spring and Hibernate Capabilities
Spring and Hibernate Capabilities to our web application. So for this, we will have... application. So, to integrate Hibernate and Spring frameworks with JSF framework we... of your application. Adding Spring Libraries Our application uses spring to manage
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
spring security - Spring
spring security  Can i use spring security concept acegi for any type of java applications
Introduction to spring 3, Spring framework 3
framework such as Struts along with Hibernate or JPA in your application. The Spring...Introduction to spring 3 In this section we will discuss about Spring 3 framework. Finally Spring 3 is here with new features and enhancements. The Spring
JAVA - Spring
spring concept, i want a small program in spring. what are the requirements... information,Examples and Tutorials on Spring visit to : http://www.roseindia.net/spring/ Thanks

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.