File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes iperf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "iperf" Watch "iperf" New topic
Author

iperf

isha jakhar
Greenhorn

Joined: Apr 29, 2013
Posts: 7
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.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41855
    
  63
Are you asking about http://iperf.sourceforge.net/ ?

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.


Ping & DNS - my free Android networking tools app
isha jakhar
Greenhorn

Joined: Apr 29, 2013
Posts: 7
yes i am asking about the first option.
i have done the following code till now.

i want to know about the connectivity of this code with the mysql database.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41855
    
  63
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?
isha jakhar
Greenhorn

Joined: Apr 29, 2013
Posts: 7
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.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41855
    
  63
Ulf Dittmer wrote:Are you familiar with JDBC, the standard Java API for DB access?

If not, start reading at http://docs.oracle.com/javase/tutorial/jdbc/
isha jakhar
Greenhorn

Joined: Apr 29, 2013
Posts: 7
yes i am familiar with it but i need a code that will fit into this coding
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41855
    
  63
So what, exactly, do you need help with:

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.)
isha jakhar
Greenhorn

Joined: Apr 29, 2013
Posts: 7
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.
isha jakhar
Greenhorn

Joined: Apr 29, 2013
Posts: 7
can anyone give me a java code for IPERF GUI ?
need it urgently within 24 hours !
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41855
    
  63
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?
isha jakhar
Greenhorn

Joined: Apr 29, 2013
Posts: 7
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. !
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41855
    
  63
Since you refuse to respond to my considered questions, I have now lost interest in this topic. Good luck.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: iperf