User Profile

Collapse

Profile Sidebar

Collapse
jx2
jx2
Last Activity: Jul 13 '10, 06:43 PM
Joined: Feb 27 '07
Location: Bristol UK
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jx2
    replied to i have problem with php syntax?
    in PHP
    you should have type \" instead of " (cos this close a 'line')
    or use single apostrophe:
    echo 'any "text" here';
    See more | Go to post

    Leave a comment:


  • jx2
    replied to How to force a popup in java
    in Java
    have a look here

    good luck

    Jan
    See more | Go to post

    Leave a comment:


  • jx2
    replied to Changing Driver in Java Desktop apllication
    in Java
    I'm using netbeans 6.7
    I'm also not sure how to recreate DB from entities (if that is possible)

    regards
    Jan
    See more | Go to post

    Leave a comment:


  • Your syntax is wrong
    line 5 should look :
    Code:
             for (int i =1; i < modArray.length; i++){
    //some code here
    }
    regards
    Jan
    See more | Go to post

    Leave 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
    See more | Go to post

  • jx2
    replied to Problem painting an image
    in Java
    Are you sure that the file is in a correct folder?
    you can try this:
    Code:
    BufferedImage img = ImageIO.read(new File("imagepath.jpg"));
    I know this one is working, and you'll get IOException if it cannot open a file

    regards jan
    See more | Go to post

    Leave a comment:


  • jx2
    replied to Trouble getting Keyboard input with KeyListener
    in Java
    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
    ...
    See more | Go to post

    Leave a comment:


  • jx2
    replied to Java Serializable
    in Java
    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:
    Code:
    class book implements serializable{
     String isbn;
    String author;
    //geters and setters here
    }
    then you can save it on hd as an object there is nice example on wikipedia: http://en.wikipedia.org/wiki/Serialization
    regards
    jan
    See more | Go to post

    Leave a comment:


  • jx2
    started a topic Changing Driver in Java Desktop apllication
    in Java

    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...
    See more | Go to post

  • jx2
    started a topic heap space memory
    in Java

    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?...
    See more | Go to post

  • jx2
    replied to JavaMail™ API Design Specificatio
    in Java
    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 Jarczyk
    See more | Go to post

    Leave a comment:


  • the easiest way to do it is to divide by 2 and check if there is a ramiaining
    i.e.:
    Code:
    int i = str.length();
    i = i % 2;
    i hope that helps
    Jan Jarczyk...
    See more | Go to post

    Leave a comment:


  • jx2
    replied to random number generator
    in Java
    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 will
    ...
    See more | Go to post

    Leave 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...
    See more | Go to post

    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...
    See more | Go to post

    Leave a comment:


  • Itried allof them
    incuding
    Code:
    Vector deviceList = CaptureDeviceManager.getDeviceList(null);
    however YUVFormat.YUV_Y UYV is the one which works in JMStudio

    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?

    ...
    See more | Go to post

    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:
    Code:
    Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(VideoFormat.YUV));
            di = (CaptureDeviceInfo)deviceList.firstElement();
    (Vecor is empty)
    [PHP]Exception in thread "main" java.util.NoSuc hElementExcepti on...
    See more | Go to post

  • jx2
    replied to store 4 values in a hashmap
    in Java
    i am not sure i fully understand what you mean
    but i think this may help you:
    Code:
     
            Map<Integer, int[]> map = new HashMap();
            int[]  a1 = {13,17,19};
            int[]  a2 = {23,29,31};
            
            map.put(1, a1 );
            map.put(2, a2 );
    or
    Code:
            Map<Integer, MyClass> map = new HashMap();
            MyClass  a1 = new MyClass(13,17,19);
    ...
    See more | Go to post

    Leave a comment:


  • jx2
    replied to HELP !!! (Capture text between html tags)
    in Java
    I would use regular expresion
    Code:
    String [] yourArray; // an array of the captured text 
    yourArray = yourString.split("<[^>]*>");
    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. StringBuilder

    good luck with your project
    jan jarczyk
    See more | Go to post

    Leave a comment:


  • jx2
    started a topic possible loss of precision
    in Java

    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
    See more | Go to post
No activity results to display
Show More
Working...