Mahesh Kedari

Ranch Hand
+ Follow
since Nov 28, 2009
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mahesh Kedari

I am not fully aware of your problem. Also I have not worked on framework design of our products, but I'll just explain how our product is handling such scenarios.
We have 2 types of indexing to our customized modules.
1 is for their version and 2nd is for weight.
Certain code in our framework always needs a customization while certain customized code depends upon core version.

As you were talking about Action class,
When we customize these classes we give -1 weight to these classes if we always want a customized class to be used,
else we give some positive number indicating it is free to pick up latest code from core if version index is higher than customized class.
This positive number ( x ) indicates the difference in version decided by project architect.
So if core class version is x points higher than customized class, use core class else use customized class.

These indexes are mentioned in manifest file of customization module.

Here, MyAction class will always be used from customized module while MySecondClass will be used from customized module till core version is less than

This is not a complete solution for your problem but i hope it helps you for your design strategy.
10 years ago
Check for the value at model level.

if you are getting a proper value with this, them most probably you might have overridden getValueAt() method for your JTable somewhere.
10 years ago
I've seen may posts on web saying it is not possible to send a data directly to printer from a web page without using print dialog.
I understand that there could be a security threat if such feature is provided in browser.
But I need this feature for my web application (Web based Point of Sale).

Is there any tip or trick using which I can print a specific content without showing print dialog?
I am thinking to develop a plugin for chrome which will allow this feature only for specified URLs.
So if some print request is coming from that specified URL, chrome should not display any print dialog and it should directly print the content on default printer.
Can somebody help me for that? Is there any plugin already available in market with such feature?
Hi all,
This is about Eclipse CDT framework. I need some help on Conditional dependency scanning issue.

Below is a code snippet where dependency scanning is failing.

I have this structure in test.c file. When i build it for first time, it generates a dependency file test.d.
Depending upon the status of macro ABCD, it adds the entry in test.d file.
e.g. If ABCD is defined then test.d contains entry for a.h In other case it adds b.h

Now once the dependency file is generated, and i go to Managed Build Settings page, and define/remove one macro ABCD, my project gets rebuilt but dependency files does not get deleted automatically.
For reference, below are some of the links of similar bugs.


In my last post i've already given you a simple trick for placing it at relative location. some more analysis on that will give you a solution.
11 years ago
Seems like a class path issue. When not configured explicitly, file is picked from default package. Make sure that your file is present at correct location.
For proper location
One simple trick:
Add a file creation code snippet in your project (give only file name without path). Check the location where your new file is getting created. Add your file at that location and try.

11 years ago
try running your jar on command line. It will give you the details if there is any initialization error for log4j framework.
11 years ago
You need to add sources jar along with your binary jar into IDE for viewing the source code if not added by default.
11 years ago
Agree with Winston.
Having abstract method is not mandatory for an abstract class. Basically the purpose of abstract class is to indicate that you should (not must, when there is no abstract method) customize the behavior of this class before using it.
Abstract class gives you a template with some default behavior.
11 years ago
Looks like you are confused a bit with some specific example. I would suggest you to please go through the constructor of your example

When you call this parametrized constructor, it internally creates an object of TableModel for you and puts your "data" and "col" inside it.
JTable cannot be constructed without TableModel. Im not sure if there is a trick to create it, but that wont be of any use as far as i know.
Experts, please comment.
11 years ago
I am not sure why people say that IDE hides most of the things from developers? I work for a team developing E2Studio (Eclipse flavor for Embedded developers) IDE.
And we give maximum possible flexibility to developers to configure their custom settings. IDE saves lot of time developing a program with some default settings.
A curios developer will always go and dig out features of IDE where upon he can learn many things and customize an environment as per his needs.
Off-course you should know some basics before jumping into an IDE but I dont think one should use command line for a whole life. IDE saves lots of time.
11 years ago
Table is an independent component created using Table Model and Table Cell renderer. In swing, every component is divided into 2 parts.
1 is model and other is view. Table Model store the data which you need to display on your table object. Table Cell renderer stores the
presentation related information and decides how your data should get displayed on UI.
11 years ago

I am laughing uncontrollably reading this thread. I'm really surprised to see that even JRE version can cause this issue.
11 years ago
Im not sure what exactly is making you get confused so much.
I will give you one general example. Please note that this is just an example and may not be a real time scenario.

Lets assume, that company A makes a car body, engine, front glass, mirrors and almost everything expect wheels. There is another company B which makes wheels but doesn't actually make the entire car.
Now Company A cannot directly release a car in market right? but Company B can buy a car structure without wheels from company A and attach wheel to it and release a car in market.

Same thing happens with Java. Company B can place a Car Object into memory but company A cannot. But company A can refer a car object created by company B because it knows everything about that car except wheels.

Now hope this explanation clears your doubt about abstraction.
11 years ago