Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

kumar Reddy

Greenhorn
+ Follow
since Nov 24, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kumar Reddy

Hi
Sorry for dealy in replying.

my problem in short.
i created a filter with .jar and added to filechooser.showopendialog().
now during exectuion, on start up, it shows the jar file and the folders..that i expected..thats fine until now...

now in the file name text box available, say if i type *.xml and press enter, now the xml files available in the current folder will be shown and "*.xml" will be added to Files of Type combo box. which is not intended.





I think the option of 1) not allowing the user to type in text box is not a good idea. if there are 100 files in a folder that is open, and he already know the name of that..he should be able to enter that.

2) idea of writing custom file chooser will work..will look into that..



I just dont want him to go out of the file dialog, if he selects other than a jar file and presses OK... However CANCEL can be used if he dont wanna have a selection.

thank you
17 years ago
Hi all,

just got a small query regarding JFileChooser.

i want the user to restrict only to select .jar files . so i used

JFileChooser fileChooser = new JFileChooser("Select a jar file...");
JarFilter1 jFilter = new JarFilter1( "jar", "Only Jars" );
fileChooser.setFileFilter(jFilter);
FileFilter allfileFilter = fileChooser.getAcceptAllFileFilter();
fileChooser.removeChoosableFileFilter(allfileFilter);


The jarFilter is just like this



public class JarFilter1 extends FileFilter {

String m_desc = null;
String m_ext = null;

public JarFilter1(String m_ext, String m_desc) {
this.m_ext = m_ext;
this.m_desc = m_desc;

}

public boolean accept ( File f ) {
if ( f == null )
return false;

if ( f.isDirectory () )
return true;

return f.getName().toLowerCase().endsWith(m_ext);

}

public String getDescription () {
return m_desc;
}
}


int returnVal = fileChooser.showOpenDialog(this);

it shows only directories and jar files, that is fine..
but when i type sample.class or *.class in the filename text box of the dialog, *.class filter gets added to the combo box, so i can select the class file and press ok. and this file is returned back to me..

but i dont want the user to get out of the open dialog until he selects a .jar file...could you please let me know how could this be possible???

thank you
17 years ago
Hi

I have a main class



i want to draw UML diagram, could you just let me know just the relationships (associations/dependencies) in the above scenario.

1. realization between class abc and interface Ibcd (it is correct)
2. what is relation between class A and interface Iabc
3. whatis realtion between interface Iabc and Ibcd
4. what is relation between class A and Ibcd
5. what is relation between Iabc and class bcd.
6. what is relation between class abc and bcd

please let me know if there are any more relationships between these

thank you

[added code tags - Ilja]
[ January 27, 2005: Message edited by: Ilja Preuss ]
Thank you for the reply.The answer from you was good

so from your reply, i understood as follows..correct me if i am wrong..

in the analysis phase, requirements are collected and all the type of diagrams can be used to model these requirements by realising them into real world objects.

In the design phase, the diagrams from the prev phase (real world objects and interactions are taken and a detailed diagrams are presented based on the object oriented programming language selected.

am i correct
hi
thank you for the link. it is good

also the link

http://www.cetus-links.org/ is helpful ..

thank you
hi
just got a silly question.. In few resources it is mentioned that sequence diagrams comes under OOA, and in few it is mentioned that it comes under OOD. I would just like to know, under which phase does it come?

also what diagrams comes under OOA and what comes under OOD?

correct me if i am wrong?

OOA
Use case diagrams
Activity diagrams
class diagrams (primary level without any interactions)
sequence diagrams

OOD:

Class diagrams (detailed)

where does
state, object, collobration, deployment diagrams reside?

i hope you can help me in this regard.

thank you
hi all

thank you for ur sugegstions, but unfortunately you didnot provide me the online links for OOA and OOD, if you know,please let me know.


ofcourse changed my display name too.

thank you
17 years ago
hi All

could you please provide me with some good online resources (books/tutorials/lectures) on

OO Analysis and OO design

if possible, resources that are free of cost

thank you
hi all,

could any one propose a good online tutorial or online book dealing with concepts of OO Analysis and design (independent of language).

btw, could you please let me know differece between OO Analysis and OODesign phases..

where are actually class diagrams drawn,..in analysis or design phase?

thank you
17 years ago
hi stan

Nice to see reply from you..yep u are correct, but wat i was intending was a little different.so let me define it in someother way..

a class SAMPLE have some methods
and i want to replace methodA by methodC dynamically
this methodC is in vector.

so now the class should parse class SAMPLE to find some methodA and replace it with methodB which is in vector.

my client program uses another object which does this for him

my client program

class MANAGER

should call modifier by sending sample and vectorr to it to do the work for him. what i feel is 3 alternatives

1st alternative to call modifier

modifier m = new modifier();
m.modify(SAMPLE,vectorr);

2nd alternative to call modifier
modifier m = new modifier(sample);
m.modify(vectorr);

3rd alternative
modifier m = new modifier(sample,vectorr);
m.modify();

as you see the constructor and method parameters are different.

my question is which one is better alternative and which one should be used and why..

talking in terms of design words.

thank you
17 years ago
I got following doubt while designing my s/w system. my usecase is as following
modifying car with a new wheel

CLASSES 1.CAR 2.WHEEL

class mechanic{

callmodifier(){
Modifier m = new Modifier(car);
//Modifier m = new Modifier(car,wheel);
m.modify(wheel);
// m.modify();
}
}

here is my doubt, In the above snip of code, please see the commented lines
so if

Modifier m = new Modifier(car);
m.modify(wheel);

is replaced by
Modifier m = new Modifier(car,wheel);
m.modify();

both of them works logically. I was just thinking of how to decide which one should be an member varible of modifier and which one cannot.

which of the above two alternatives is better and why?

sorry if it is silly, but wanted to know this.

hope that you can help me in this regard.

Thank you
17 years ago
hi
just try to use some existing profilers and find out where most of the time is spent, that is whetehr in your code, or in the tomcat, or in hibernate, so that you could have a clear pic of which method is taking most of time..and drill down into details of the method..if the method which has query is taking more time..then use some tool to find out the retrival time of query..so you could findout where max time is consumed

hope that it helps
17 years ago
hi
i have few questions.

1, does Sun provide reference implementation of CDC normally?

2, is the reference implementation of CVM cdc1.01?

3, does they provide the CVM for PocketPc?

thank you
17 years ago
hi
i am trying to profile an application running on pda using IBM WSDD microanalyzer..i am having a problem..i connected my pda using active sync..and installed the application on the pda and when started to execute,it should create a trace in memory buffer. and when the application is terminated , then there is a possiblity to download the trace that is stroed in memory buffer of pda. but when i am trying to download that to my desktop pc, the IBM WSDD IDE shows an hour icon and waited for a longtime,btu could not get any answer,..however this process is taking some memory and cpu cycles..but could not get on to desktop..

anybody who worked on microanalyzer, could you please help me in this regard..

thank you
17 years ago