I've a very little problem in java. I think i'm not still really awake.
I have two classes:
The first one use constants from a jar (example : Highgui.CV_LOAD_IMAGE_COLOR). In the second one the user select in a list which constant he want to use.
So, the second class call a method of the first one, with the "stringify" constant to use in param.
But the first one can't use the string in param has a real class constant.
I know, that's a really stupid problem, I'm pretty sure I'm missing something obvious.
Someone have an idea to deal with that?
Edit :
A piece of code for more clarity :
In Class2
Class1.finder("c:aaa.jpg","Highgui.CV_LOAD_IMAGE_COLOR");
In Class1
public void finder(String path1, String constant){
Mat object = Highgui.imread(path1, Highgui.CV_LOAD_IMAGE_COLOR);
//I want to use "constant" instead of Highgui.CV_LOAD_IMAGE_COLOR
}