Tanzy Akhtar

Ranch Hand
+ Follow
since Jul 19, 2009
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 Tanzy Akhtar

Michael, Peter, Rob Thank you all for the response.

Well, Peter believe it or not, I also followed erlier the same path to insatll any application as "c:\apps".
13 years ago
Thank you Michael for the response.

Michael Angstadt wrote:javac doesn't use the JAVA_HOME variable, but I'm pretty sure Maven does.


So one can conclude that if any program uses JAVA_HOME, There is two way to avoid above error-
1. If java is insatlled in "Program Files", then kindly put JAVA_HOME value in ""(quotes).
2. Otherwise, java should be installed in such directory, which doesn't have spaces in their name.

Am i right Michael?
13 years ago
Thanks Michael for the response.
Yes you are correct if i will put quotes on Java_Home's value, it will work.

But the same question again, why this is needed in case of running mvn command.
Its not needed when using other commands like javac on command prompt etc.
13 years ago
Hi Raza,
Hope following code snippet will help you out.


Thanks,
Tanzy.
13 years ago
Thank you Rob for the response.

What you said, is perfect.
But getting this error while running mvn command, not for others like running ant command or
running simple javac command.

What special in the case maven?
Is it kind of bug in maven or something else?

Thaks,
Tanzy.
13 years ago
Hi,

While executing the "mvn clean install" got this error :


can some body point it why tis error?

Thanks,
Tanzy.
13 years ago
Hi,
I am using JMX way to get heap memory.
Used the following code to--



It's working fine as of now.

But i need to get the value of heapmemory used.
Anybody suugest how to achieve it?
13 years ago
Hi,

Created email sending code using velocity. Its working fine if used as stand alone.
But problem arises when the velociy code gets integrated with Spring batch process.
The problem is : in the email, its showing html tags and emoves the header.

Can somebody provide a way to come over this problem.

Thanks,
Tanzy.
13 years ago
Thank you Mark, Pete and Maneesh for helping to resolve the problem.
14 years ago

I've not heard of "AbstractDataModel" but perhaps you're referring to "AbstractTableModel".


Thank you for coreting me Pete.

Well, some people say that it would be better, if model class extends AbstractTableModel instead of DefaultTableModel.
Let me tell you my need. I need to fire a query, every ten minutes, to database for table "T",having column of type Date,Integer and String.
Now need to show this data on UI using JTable up to maximum 10 rows.
Now let me know your advice, whether it will good to follow DefaultTableModel or need to extend AbstractTableModel?

Thanks,
Tanzy.
14 years ago
Hi Maneesh,

I tried to implement the JTable. Created my own model by extending "AbstractDataModel" and defined essential method like getValueAt etc. Some methods i want to show :



and to populate data i used this :


And in main method calling in this way :


Now just only one data is being shown in JTable. Where am i doing mistake? Please point it out.
14 years ago
Hi,

How to insert a new row into JTable at every interval of 5 minutes?
Also how to fix the maximum number of rows in the table? Let it be 50 as maximum number of rows are allowed. At the time of 51st row insertion, it should look for the row which was inserted earliest.

Scenario :

There is a table, "mytable" in database, with columns {createdTime, name, address}.
Now i want to display these data on swing UI based on JTable, which gets refreshed at interval of 5 minutes, i.e if there is insertion of any new in "mytable" during the 5 minute interval, then it should insert the same data into JTable.

Thanks.
14 years ago
Thank you Ulf.
I added this to above piece of code


Now the formatting is under control. But still the core problem is not fulfilled, i.e. how to start the x-axis value with one hour back time from the current time. For example if current time is 11:30 PM, the xaxis should start with 10:30 PM.
14 years ago
Thank you Ulf for the reply.
Well i used this for the the demonstration.

In this example, what i saw that x axis value is not fixed. Its getting changed as per value of minute given in data.
For example --

1. Use the sample program with nothing changed.
X axis --> 20:02, 20:04,20:06.......

2. commented these four value --


x axis value --> 21:01:00, 21:01:30, 21:02:00,....

And so on.
I am not getting, how to control these value?
14 years ago
Hi,

The program is creating time chart using

In the program, take the current sysdate. Now chart should start with one hour back date form current sysdate,
And it must be of ten minutes of interval.
How to achieve this?


Thansk,
Tanzy.
14 years ago