you should have type \" instead of " (cos this close a 'line')
or use single apostrophe:
echo 'any "text" here';
User Profile
Collapse
-
-
I'm using netbeans 6.7
I'm also not sure how to recreate DB from entities (if that is possible)
regards
JanLeave a comment:
-
Your syntax is wrong
line 5 should look :
regardsCode:for (int i =1; i < modArray.length; i++){ //some code here }
JanLeave a comment:
-
What is the difference between Hibernate, TopLink and EclipseLink?
What is the difference between Hibernate, TopLink and EclipseLink?
are they types of persistence?
thanks for your help
Jan -
Are you sure that the file is in a correct folder?
you can try this:
I know this one is working, and you'll get IOException if it cannot open a fileCode:BufferedImage img = ImageIO.read(new File("imagepath.jpg"));
regards janLeave a comment:
-
I know its frustrating, it seems that you can not set form on focus;
anyway
I had the same problem and i found a simple solution(not sure if the best solution lol)
You can use textfield and listen to his key listener!
its simple and it works!
u dont have to change much in fact u need to ad textfield
set it to:
textfield.setvi sible(false) and textfield.reque stfocus()
regards
...Leave a comment:
-
You can use serialize in many ways, i.e. instead of database system ;-) I wouldn't recommend it
any way it would look something like that:
then you can save it on hd as an object there is nice example on wikipedia: http://en.wikipedia.org/wiki/SerializationCode:class book implements serializable{ String isbn; String author; //geters and setters here }
regards
janLeave a comment:
-
Changing Driver in Java Desktop apllication
Hi everyone, i made java database desktop application,(us ing persistence)
I want to use this application on a different computer,
I used derbyDB (network driver) is it possible to change it to embedded?
and any way I'm not sure if there is a simply way to deploy desktop application on diffrent computer, I mean setting up db sorting up connections permissions and so on,( I guess you cant ask ordinary computer user to install... -
heap space memory
Hi all, i've got a problem with heap space,
i know i can run it with something like: -Xms32m -Xmx1028m
but this is pain in ass (i run it on windows)
how can i create program with bigger heap space?
I tried to create a short cut but if i create a short cut like that:
java -Xms32m -Xmx1028m -jar "myflie.jar "
it opens a black window, I DONT NEED A BLACK WINDOW!!
any suggestions?... -
if you really want to know about emails you should read this
its not as complicated as it seems to be
i hope it helped
Jan JarczykLeave a comment:
-
the easiest way to do it is to divide by 2 and check if there is a ramiaining
i.e.:
i hope that helpsCode:int i = str.length(); i = i % 2;
Jan Jarczyk...Leave a comment:
-
i dont knoe anythink about your program but i see big problem in your last post
...Code:while (more = true) ; { } //there are at least two mistakes in one line the "more=true" is always true // i think you meant " more==true" <--- notice double "=" //second the semicolon at the end of first line "{}" will be ignored !! //correct while loop willLeave a comment:
-
yeah
thats what im doing now- unfortunately their code isnt documented and thats makes things a bit more difficult lol
thanks
Jan Jarczyk...Leave a comment:
-
JMStudio is trying to load device from registers(which is confusing cos there is no registers) after it fail its serching for devices and add them to the list and then iam able to start capturing :( its very confuzsing and i need the simpliest posible way of doing it...
manually
well the problem is that ive tried and i failed for stupid reason I cant figure out how to doit
its seems its one of those problems...Leave a comment:
-
Itried allof them
incuding
however YUVFormat.YUV_Y UYV is the one which works in JMStudioCode:Vector deviceList = CaptureDeviceManager.getDeviceList(null);
i downloaded JMStudio source code and its working
( ive got others problems with it)
i'm confused ! and i cant find the problem , all example source code loook like mine(but only JMStudio works) so where is the problem?
...Leave a comment:
-
JMF JMStudio - video capture software - empty vector of devices
Hi guys im having a big problem with JMF and i would appreciate your help...
i saw a lot of source codes with these two lines
unfortunatly this doesnt work for me:
(Vecor is empty)Code:Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(VideoFormat.YUV)); di = (CaptureDeviceInfo)deviceList.firstElement();
[PHP]Exception in thread "main" java.util.NoSuc hElementExcepti on... -
i am not sure i fully understand what you mean
but i think this may help you:
orCode:Map<Integer, int[]> map = new HashMap(); int[] a1 = {13,17,19}; int[] a2 = {23,29,31}; map.put(1, a1 ); map.put(2, a2 );
...Code:Map<Integer, MyClass> map = new HashMap(); MyClass a1 = new MyClass(13,17,19);Leave a comment:
-
I would use regular expresion
unfortunately there is no implode method so if you need it to be one string you have to connect those parts together using i.e. StringBuilderCode:String [] yourArray; // an array of the captured text yourArray = yourString.split("<[^>]*>");
good luck with your project
jan jarczykLeave a comment:
-
possible loss of precision
1: where do i lose precision? everythink is long i dont multiply so its
not posible to get enything different then long
2: how to fix it?
[code=java]
long n,i;
long [] numbers = new long[100];
n=1;
i = 1;
numbers[n] = i;
[/code]
thanks a lot
jx2
No activity results to display
Show More
Leave a comment: