473,395 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problem occurs due to combine the code.....

22
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..??
Apr 1 '08 #1
8 1157
JosAH
11,448 Expert 8TB
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
Apr 1 '08 #2
Navdip
22
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.....
Apr 1 '08 #3
r035198x
13,262 8TB
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?
Apr 1 '08 #4
Navdip
22
What happens before those statements then and where is the code for that?
Expand|Select|Wrap|Line Numbers
  1.  else if (e.getSource() == liveButton)
  2.       {
  3.           JOptionPane.showMessageDialog(null,"Clicked on live-Button","Honey well",1);//Debug
  4.         liveData = true;
  5.       }
  6.     }
  7.  
  8.     private void browseFile()
  9.     {
  10.         JOptionPane.showMessageDialog(null,"INSIDE Browse fxn 01","Honey well",1);//debug
  11.         events.append("\tinside Browse function");//debug1
  12.       JFileChooser filechooser=null;
  13.  
  14.       filechooser = new JFileChooser();
  15.             events.append("file chooser  "+filechooser);
  16.       events.append("Creation of file chooser");//debug2
  17.       JOptionPane.showMessageDialog(null,"INSIDE Browse fxn after creating filechooser object 02","Honey well",1);//debug3
  18.       //filechooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
  19.  
  20.       filechooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);//Debug (nav)
  21.       JOptionPane.showMessageDialog(null,"INSIDE Browse fxn after choosing file type 03","Honey well",1);//debug4
  22.  
  23.       filechooser.showOpenDialog(this);//debug (nav)
  24.       //if(filechooser.showOpenDialog(this) == JFileChooser.CANCEL_OPTION)
  25.       //  return;
  26.  
  27.       evtFile = filechooser.getSelectedFile();
  28.  
  29.       if(evtFile == null || evtFile.getName().equals(""))
  30.       {
  31.         JOptionPane.showMessageDialog(this, "Invalid Event Log Filename", "Invalid Filename", JOptionPane.ERROR_MESSAGE);
  32.       }
  33.       else
  34.       {
  35.         parseFile(evtFile);
  36.       }
  37.     }
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..
Apr 1 '08 #5
r035198x
13,262 8TB
What does your stack trace say then?
Apr 1 '08 #6
Navdip
22
What does your statck trace say then?
What do u want to ask..???
Apr 1 '08 #7
r035198x
13,262 8TB
What do u want to ask..???
Looks like I edited that mispel too late.
I meant what does the logging output show?
Apr 1 '08 #8
Navdip
22
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...
Apr 1 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

6
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"...
7
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:...
3
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,...
0
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
3
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. ...
4
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...
8
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...
3
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...
11
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,...
2
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
marktang
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,...
0
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...
0
jinu1996
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...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.