@Anamika
I believe you want to manage multiple machines from a single node,
webmin is a collection cgi script that runs on a machine and gives you a web
interface to manage that system. You are probably trying to build a desktop
based GUI app that can manage multiple systems. So your work on the client
side should involve Swing and RMI, on the server ( that is the jave app you
will be running on the machines to be monitored) need not have a GUI, just
an RMI server.
Himesh
On Tue, Jun 7, 2011 at 2:39 AM, ANAMIKA CHAUHAN
<[email protected]>wrote:
> Hello friends
> I want to make a webmin type of software..implementing only some services
> of it..like shutdown,restart,reboot,create new user etc........
>
>
> I have thought to make GUI using swings technology of java for gui and
> using runtime API for executing unix commands.for e.g.
>
> *(This creates a button and on clicking it shutsdown system)*
>
> import java.awt.event.ActionEvent;
> import java.awt.event.ActionListener;
> import javax.swing.*;
>
> import java.io.*;
>
> public class Main extends JFrame {
> JLabel jl;
> public Main()
> {
> JFrame f=new JFrame();
> f.setSize(200,200);
> JPanel p=new JPanel();
> f.getContentPane().add(p);
> JButton jb=new JButton("b1");
> p.add(jb);
>
> Handler h=new Handler();
> jb.addActionListener(h);
> f.setVisible(true);
> f.setDefaultCloseOperation(EXIT_ON_CLOSE);
> }
> private class Handler implements ActionListener
> {
>
> public void actionPerformed(ActionEvent e) {
> shut sh=new shut();
> sh.shutdown();
> }
> }
>
>
> class shut
> {
> public void shutdown(){
> try{
> Runtime runtime=Runtime.getRuntime();
> Process proc=runtime.exec("shutdown now -h -t 0 ");
> System.exit(0);}
> catch(IOException ae)
> { System.out.println("error occured");}
> }
> }
>
> public static void main(String[] args) {
> Main main = new Main();
> }
>
> }
>
>
>
>
> As webmin performs this function remotely...How to do this........
>
> I need ur suggestion to bulid webmin type of application...(java preferably
> coz I dont hav good command over perl)
>
> --
> Mailing list guidelines and other related articles:
> http://lug-iitd.org/Footer
>
--
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer