Gokulakannan Vasu

Greenhorn
+ Follow
since Jan 11, 2011
Merit badge: grant badges
For More
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 Gokulakannan Vasu

Ya dude...i refresh the project...!!!
Hi all,

Requesting for a help..I updated my Eclipse from 3.0 to 3.1,after the updation i moved my application source code by importing it.While compiling it,i got the following error.

The project was not built due to "Could not delete: /bounc/bin/ca.". Fix the problem, then try refreshing this project and building it since it may be inconsistent

I dont know why its happening,i need your help in sorting out this problem..Looking forward for your reply.
Hi All,

I tried connecting a remote Unix server using Java code.I gave my remote IP address and my system IP address for the connection purpose.I am getting an exception like java.net.ConnectException: Connection refused

Herewith i furnished my code as well.Kindly guide me to connect to the remote host.

@Greg Brannon
I tired googling it,but i cant able to find it...some of the sites were banned too...please help...!!!
13 years ago
Folks need a help regarding what jar file that need to downloaded...i tried for com.jscape jars but its not available in net...if anyone come to know or anyone have the available jars...please give me the link or provide the download....the code as follows:

13 years ago
Hi...I have 4 text boxes,which should show value as '0' by default while display.I have two modes 'Insert' & 'Modify'.When i give insert mode,i can give values for that textboxes.when i select 'modify' i can edit the values.The thing is,i should get all my textbox value as '0' for insert mode and i should get values which i entered and stored for those text boxes when i select 'modify' mode;

1. 0 should be shown,when i select insert
2. Stored value should be shown when i selected modify

Code as follows:
// for insert mode
protected void insertThresholdDetail() {

getMajorPctField().setText("0");
getCriticalPctField().setText("0");
getMajorPctNERField().setText("0");
getCriticalPctNERField().setText("0");
getMajorPctALOCField().setText("0");
getCriticalPctALOCField().setText("0");
getMajorPctNREField().setText("0");
getCriticalPctNREField().setText("0");
}


protected void modifyThresholdDetail() {
getCriticalPctNERField().setText(""+detailedThreshold.getCriticalPctNER());
getMajorPctALOCField().setText(""+detailedThreshold.getMajorPctALOC());
getCriticalPctALOCField().setText(""+detailedThreshold.getCriticalPctALOC());
getMajorPctField().setText(""+detailedThreshold.getMajorPct());
getCriticalPctField().setText(""+detailedThreshold.getCriticalPct());
getMajorPctNREField().setText("0"+detailedThreshold.getMajorPctNRE());
getCriticalPctNREField().setText("0"+detailedThreshold.getCriticalPctNRE());
}


How should i do this...please help me...!!!
13 years ago
@Rob Camick

if you want help you need to make the effort to create a SSCCe.



Sure dude...This is the first time i am into this.Surely i will correct my faults...!!!
13 years ago
I am very sorry that i cant deliver any code over here,as its a violation.Also it involves MVC architechture,wherein i need to send you all client.model & server codes.

Can you please suggest me why this problem exists atleast.If you want any more explanation i am ready to explain you in brief.
13 years ago
This method gives the values in the combobox.once you selected a value in the combo,the left value will be calculated

EventHandler:
if (selectedValue != null) {
ThresholdStatistics stat = new ThresholdStatistics(detailedThreshold, selectedValue); /* detailedThreshold - value from the bean file,selectedValue - value selected from the combo */
getStatisticsTableModel().addStatistics(stat);/* Add a new row */

}
}
TableModel:

public void addStatistics(ThresholdStatistics stat) {
rows.addElement(stat);
count++;
fireModelChanged(new TableModelEvent(this,
rows.size()-1,
rows.size()-1,
TableModelEvent.ALL_COLUMNS,
TableModelEvent.INSERT));
}

ModelFile:

public static String[] getStatsLeftForThreshold(ThresholdDetailData threshold) {
Vector stats = null;
for (int i=0; i<StatsByThresholdTypes.length; i++) { /* StatsByThresholdTypes - dynamic values in the combobox
if (StatsByThresholdTypes[i][0].equals(threshold.getTypeCode())) {
stats = new Vector(StatsByThresholdTypes[i].length);
for (int j=1; j<StatsByThresholdTypes[i].length; j++) {
if (!isStatPresentInThreahold(threshold, StatsByThresholdTypes[i][j])) {
stats.addElement(StatsByThresholdTypes[i][j]);
}
}
i = StatsByThresholdTypes.length;
}
}
if (stats == null || stats.size() == 0) {
return null;
}
else {
String statStrings[] = new String[stats.size()];
for (int i=0; i<statStrings.length; i++) {
statStrings[i] = (String)stats.elementAt(i);
}
return statStrings;
}
}
13 years ago
1. Combobox having values A,B,C,D,E etc (dynamic values from Database).If you select 'A',one row will be created as follows

Value selected from Combobox Percent No of items
A 67 43

2. We can create any number of rows,until the combo box value becomes empty(as it it dynamic).

3. When i tried to create 4th row,the row is created but the cell value of 3rd row,3rd column automatically reset to zero.

4. Its working fine for the next rows.The error is with 3rd row.The loops and conditions are generic.
13 years ago
@ Mr.Rob Camick

Could you please tell me,what you exactly need from me.I can do it precisely for you to understand correctly.
13 years ago
Attachment are here.Kindly download the attachments.
13 years ago
1. Assume a combo box which has dynamic values fetched from database.If you select any of the value,a row will be created with 3 cols.
2. Follow it for all the values in the combo-box

Please see the attachment for table structure.

3. When i followed the same step for entering 4th column,the cell value of 3X3(3rd row,3rd column) automatically becomes zero.
13 years ago
In my window,i have certain combo boxes which has dynamic values fetched from database.In particular,i have an 'ADD' button which i clicked will show a window having only a combobox with dynamic values.with actual scenario,if we select any value from that combobox,a row with 3 columns will be created with 1st column being the selected value from the combo box and the other two being zeros.I can give values to the other two columns(integer values only).After entering the value of 3rd row,3rd column when i added another value from the combo box by clicking the 'ADD' button,it creates another row with 3 cols(samething as i said previously).But the value of 3rd row & 3rd column automatically changes to zero.

Please help me to resolve this problem.
13 years ago