Search:

Type: Posts; User: kurt-hardy

Page 1 of 2 1 2

Search: Search took 0.35 seconds.

  1. Re: Threads are killed randomly in While true loop

    Sorry a miss understanding on my part. I know the JVM is killed but that is what is happening somewhere in my code.[/QUOTE]



    I have a close method which is called every half a second aswell....
  2. Re: Threads are killed randomly in While true loop

    That shows how many threads are running for each process but when I manually kill the Pid for the java process, the threads relating to the thread class are removed.
    Im running this on command line...
  3. Re: Threads are killed randomly in While true loop

    Im running this under linux and i can see that its killed using 'ps aux' and grepping java.
    In the log file, which prints out debug and exceptions, there are no exceptions thrown and the debug all...
  4. Threads are killed randomly in While true loop

    Hi all

    Firstly if you need more details, feel free to ask me and I will add them.
    I have a problem with two threads dying when there both in a while true statement.
    The Main class creates two...
  5. Re: update query is firing first then insert query

    If your using mysql
    -set a primary key in the database
    -using insert......on duplicate key update .....

    see MySQL :: MySQL 5.0 Reference Manual :: 12.2.5.3 INSERT ... ON DUPLICATE KEY UPDATE...
  6. Re: Mysql url pointer to server instead of localhost

    Yeah iv tried that with each one. Is there no way of doing this then? Maybe a perl script to do this would be an easier way.

    Thanks for your reply.
    Kurt
  7. Mysql url pointer to server instead of localhost

    I current have an app which runs on a server and connector to the database (using localhost, JDBC and Mysql driver)

    I need to run a class on a separate server that will populate a table with all...
  8. Re: Reusing Panel code in each tabs on a tabbed pane

    Right! I have this now.
    I created a seperate class which holds the panel with all the components and added two instances like you said.

    I had to create an array to pass the parameters but it...
  9. Re: Reusing Panel code in each tabs on a tabbed pane

    How would i go about doing this. currently everthing is added to the panel and the panel is added to the tab but i tried adding the same panel to the different tabs but it didnt work.

    Thanks
    Kurt
  10. Reusing Panel code in each tabs on a tabbed pane

    Hi
    Im current developing an app which has two tabs (in the future there may be more added) which have to exact same variables, fields, Jtables, and so on.

    currently i have named everything...
  11. Replies
    5
    Views
    415

    Re: Colouring Rows of a table

    Firstly, Thanks for your help



    Because the getTableCellRendererComponent method is in the MyRenderer class, and the Start time and stop time are in the main class, Im confused on how i can do a...
  12. Replies
    5
    Views
    415

    Re: Colouring Rows of a table

    Thanks. i now have any row which is not empty coloured using the value variable


    if (!(value.equals("")) && (column == 1)){
    background = Color.BLUE;
    }

    how can i colour the...
  13. Replies
    5
    Views
    415

    Colouring Rows of a table

    Hi all.
    I have an events tables and Im currently struggling to colour the rows in which the event starts and stops.
    I have a customer renderer but dont what vaules/tests i need to set the...
  14. Re: Switching between frames from a seperate class

    The problems with this is that im passing a service to the constructor so when i create an instance of the frame from the menubar class i cant access the current service.
    Can i create a global...
  15. Re: Switching between frames from a seperate class

    i either get a nullpointer exception if i dont create a new instance of the frame or it creates more than one instance of the same frame. if it does this when i close one frame down it closes the...
  16. Switching between frames from a seperate class

    I have a generic class which creates a menubar



    public class CreateMenuBar {

    JMenuBar MenuBar;
    JMenu FileMenu;
    JMenuItem AddAction;
    ActionListener MyListener;
  17. Replies
    2
    Views
    4,178

    Re: MAC of a remote host

    If your using linux, use nmap.
    This lists all IP addresses and Mac addresses of the Given Ip Address

    But Il need more info than that.
    Theres a java command to get host name so im guessing that...
  18. Replies
    1
    Views
    1,209

    Java.jar and Mysql.jar

    Hi all

    Right I currently have a two servers, one holding a database, and one with files stored.
    I have created a file which gets all the files stored on the second and inserts it into the...
  19. Replies
    3
    Views
    689

    Re: Layout manager

    Right sorry i should of provided something

    Firstly i have created 4 panels.
    1 for the background
    1 for the label
    1 each for the set of buttons

    i also add box layout to the background...
  20. Replies
    3
    Views
    689

    Layout manager

    Hello

    Im trying to create a layout which
    - has two panels one on top of the other
    -in the first panel a label on the top line at the left hand side
    -then a list of buttons on the second lines...
  21. Replies
    1
    Views
    615

    Servlet Writing to Object or Bean

    I have a servlet which show a row from a Database table.
    i want to store that data in an object or java bean so i can access when necessary.

    the problem i have is that when the servlet moves on...
  22. Re: saving list of data from JSP into java object

    I have the same problem.

    I have a servlet which shows a table full of data and text fields.
    I save that current data into a java bean and load another servlet.

    I then try and access the data...
  23. Replies
    5
    Views
    1,373

    Re: is there a better way to extend an array?

    That seem pretty simiple. So instead of



    String[] files = new String[1];
    int i = 0;
    while (rs.next())
    {
    files[i] = rs.getString("Filename");
    files = extend(files, files.length+1);
  24. Replies
    5
    Views
    1,373

    Re: is there a better way to extend an array?

    Il have a look at that. Iv never used array list though. can you access them the same as an array? and if it doubles in size would that not leave memory wasted?



    Sorry yes i meant file names.
    ...
  25. Replies
    5
    Views
    1,373

    is there a better way to extend an array?

    I have a database which has 1000s of files stored.
    I need to access a table and store all the values into a dropdown list for a user to view.

    Currently i set the array size to 1 and using an...
Results 1 to 25 of 35
Page 1 of 2 1 2