• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

iperf

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
isha jakhar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes i am familiar with it but i need a code that will fit into this coding
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can anyone give me a java code for IPERF GUI ?
need it urgently within 24 hours !
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you refuse to respond to my considered questions, I have now lost interest in this topic. Good luck.
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic