i want to create an iperf GUI using java i want a code so that iperf can be run by running a java program and the values in the iperf are accessed through a database in mysql.
kindly help.
Not sure what it does, what your options are probably a) run it via Runtime.exec or ProcessBuilder, and if it produces text output, capture that and display it any way you like, or b) check what "jperf" is - it seems to be some kind of Java version, so it should be amenable to being mashed into a Swing GUI app.
What, exactly, are you wondering about? That looks mostly like Swing code - how does a DB enter into the picture? Are you familiar with JDBC, the standard Java API for DB access?
i want this code to be connected to a database so that the values for port no,ip addresses,output interval etc. are directly fetched from the mysql database rather than manually setting the values in the java program.
Connecting to the DB to retrieve the values that you want to use? If you're familiar with JDBC then that should be no problem.
Reflecting the value you got from the DB in the GUI? That depends on the type of GUI elements. For a JTextField, it is "setText". For a JCheckbox, it is "setSelected" and so on.
What ideas have you had about accomplishing this? If you haven't had any ideas, start by adding the JDBC code, so that you have all data in the app. Then you can think about reflecting that data in the GUI. (All this is made harder by the terrible GUI code that looks like some GUI builder created it, and is the reason that many people prefer to create their Swing code by hand rather than having it generated for them. Or, at the least, after it's created they go through the code to clean it up significantly.)
sir i want a java code to retrieve combobox values from mysql database.
so that we manually create a table in mysql and retrieve its value using java code.
Considering that you didn't respond at all to my questions from May 1st, and don't seem to have done any work of your own since then to solve this, I think it's unlikely that anyone here will be more forthcoming with their help this time. And, of course, this is NotACodeMill, so people would not just provide you with code anyway. Maybe you would like to start fresh by addressing the questions I asked?
sir i am very sorry
i couldn't reply since i was busy with my exams.
i want my values to be reflected in the database and my aim is to create a GUI for iperf in java which i am finding very difficult to do.
kindly help
its urgent. !