Hi all..
i am developing a project in java using swings and JApplets which has different modules for different purposes. in this project there is a module named "event" which has three button..and they have their well defined set of action.... Because project is very large so i had developd them separately ...and now they are working and gives proper output..but when i combined them with main project...it doesn't give any output although there is not any error.....so please know me how to tackle it..??
8 1157
Your question is like saying: I built a real fast car myself: the steering engine
works, the wheels can rotate and I can even open and close the windows; the
car just won't drive; what could be the problem?
You should do some unit testing: the input for one module can be the output of
another one; test that communication for all modules that do interact. Slowly
build up the combination of your modules and test whether or not it functions
properly; only then proceed to the next module(s) integration.
kind regards,
Jos
Your question is like saying: I built a real fast car myself: the steering engine
works, the wheels can rotate and I can even open and close the windows; the
car just won't drive; what could be the problem?
You should do some unit testing: the input for one module can be the output of
another one; test that communication for all modules that do interact. Slowly
build up the combination of your modules and test whether or not it functions
properly; only then proceed to the next module(s) integration.
kind regards,
Jos
Hi josah
there is no IPC in project so no module can interact with another module...i have put some print statements to debug it but they do not execute after ocurance of following statements..
JFileChooser filechooser=null;
filechooser = new JFileChooser();
i.e control doesn't move after these statements.....
Hi josah
there is no IPC in project so no module can interact with another module...i have put some print statements to debug it but they do not execute after ocurance of following statements..
JFileChooser filechooser=null;
filechooser = new JFileChooser();
i.e control doesn't move after these statements.....
What happens before those statements then and where is the code for that?
What happens before those statements then and where is the code for that?
- else if (e.getSource() == liveButton)
-
{
-
JOptionPane.showMessageDialog(null,"Clicked on live-Button","Honey well",1);//Debug
-
liveData = true;
-
}
-
}
-
-
private void browseFile()
-
{
-
JOptionPane.showMessageDialog(null,"INSIDE Browse fxn 01","Honey well",1);//debug
-
events.append("\tinside Browse function");//debug1
-
JFileChooser filechooser=null;
-
-
filechooser = new JFileChooser();
-
events.append("file chooser "+filechooser);
-
events.append("Creation of file chooser");//debug2
-
JOptionPane.showMessageDialog(null,"INSIDE Browse fxn after creating filechooser object 02","Honey well",1);//debug3
-
//filechooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
-
-
filechooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);//Debug (nav)
-
JOptionPane.showMessageDialog(null,"INSIDE Browse fxn after choosing file type 03","Honey well",1);//debug4
-
-
filechooser.showOpenDialog(this);//debug (nav)
-
//if(filechooser.showOpenDialog(this) == JFileChooser.CANCEL_OPTION)
-
// return;
-
-
evtFile = filechooser.getSelectedFile();
-
-
if(evtFile == null || evtFile.getName().equals(""))
-
{
-
JOptionPane.showMessageDialog(this, "Invalid Event Log Filename", "Invalid Filename", JOptionPane.ERROR_MESSAGE);
-
}
-
else
-
{
-
parseFile(evtFile);
-
}
-
}
this code is working when i run it as individually but in main project in create problem in "debug 2" may it possible it is unable to create File chooser' object..i am sending u just a part of module, the whole module is impossible to send..
What does your stack trace say then?
What does your statck trace say then?
What do u want to ask..???
What do u want to ask..???
Looks like I edited that mispel too late.
I meant what does the logging output show?
Looks like I edited that mispel too late.
I meant what does the logging output show?
it will call the parse function atlast in which we have passed the Binary file that would be choosed from some location..and the parse function parse it according structure and display some data in JTextArea...problem is arising when we create object of JFileChooser class...
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Hansan |
last post by:
Hi all.
I am working on a webpage where I use python and html.
When I want to send one variable to a new script/page I use the following
code:
0) print '''<input type=hidden name="eventid"...
|
by: Hansan |
last post by:
Hi all, I hope you have time to help me out a little. My problem is that I
want to combine some python code I have made with some html templates, I
found a tutorial at dev shed:...
|
by: Nick |
last post by:
I am working a new application...well actually a series of applications for
my company. They want internal users to be able to go to a site and
everything regarding security is transparent,...
|
by: MFS 43 |
last post by:
Have two tables with identical fields (access 2002).
Trying to combine DATA.
I created two recordsets based on these two tables.
then I used code that looks like this.:
with rstmain
|
by: giladap |
last post by:
I am trying to create a BHO using C#. I currently have it successfully
loading into IE (I've checked with "Manage Add-ons"), but nothing else
seems to be working. I get no errors that I can see.
...
|
by: FBM |
last post by:
Hi,
I am working on a program that simulates one of the elements of ATM.
The simulation stores events which occurs every some milliseconds for a
certain amount of time. Every time that an event...
|
by: Elliot Temple |
last post by:
Problem: Randomly generate 10 integers from 0-100 inclusive, and sum
them. Do that twice. What is the probability the two sums are 390 apart?
I have code to do part of it (below), and I know how...
|
by: utab |
last post by:
Dear all,
I tried to solve the occurence problem: to find the distinct occurences
of a word in an input. I know that I could use map and other STD lib
functions. I tried to do it the hard way. I...
|
by: panic attack |
last post by:
Hello everbody,
Our system is using Sql Server 2000 on Windows XP / Windows 2000
We have a text file needs to be imported into Sql Server 2000 as a
table.
But we are facing a problem which is,...
|
by: VI |
last post by:
Hi all,
I have a problem with the fsw object, and maybe someone experienced with
the fsw can help me out.
First I want to a share a snippet of the code with you:
private void...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |