I just need a simple GUI...

I can't get my really simple GUI to work at all, I don't get all the abstract crap.
Can someone just make me a crazily simple GUI with a button that when you click it, it changes the text in a text box?
Thank you in advance.

I'm just trying to make a GUI, but I just want something to refer to.
All the ones I could find thru google were too complicated, I just want something that I can build off of.

Similar Messages

  • Need a simple GUI

    Hi, ive done a java-program that parses and calculates stuff. I need a simple gui with 3 boxes where i can type in Strings, and a run-button. When my program is done, all the gui needs to print "done".
    Could someone supply ther code? Have no time to get involved in gui-building :/
    tx in advance

    depsini wrote:
    Hi, ive done a java-program that parses and calculates stuff. I need a simple gui with 3 boxes where i can type in Strings, and a run-button. When my program is done, all the gui needs to print "done".
    Could someone supply ther code? Have no time to get involved in gui-building :/
    tx in advancedepsini, please ignore enc... and the others, they can be a bit cranky at times. I've got a simple program that you may be able to use for your needs:
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Random;
    import javax.swing.*;
    import javax.swing.border.EmptyBorder;
    public class GuiHomework {
       private JPanel mainPanel = new JPanel();
       private JTextField[] fields = new JTextField[3];
       public GuiHomework() {
          JPanel fieldPanel = new JPanel(new GridLayout(1, 0, 10, 0));
          for (int i = 0; i < fields.length; i++) {
             fields[i] = new JTextField(7);
             fieldPanel.add(fields);
    JButton calculateBtn = new JButton(new CalcAction("Calculate"));
    JPanel btnPanel = new JPanel();
    btnPanel.add(calculateBtn);
    int eb = 10;
    mainPanel.setBorder(new EmptyBorder(eb, eb, eb, eb));
    mainPanel.setLayout(new BorderLayout(eb, eb));
    mainPanel.add(fieldPanel, BorderLayout.CENTER);
    mainPanel.add(btnPanel, BorderLayout.SOUTH);
    public JComponent getComponent() {
    return mainPanel;
    @SuppressWarnings("serial")
    private class CalcAction extends AbstractAction {
    private static final int TIMER_DELAY = 500;
    protected static final int MIN_DELAY = 40;
    protected static final double DELAY_SCALE = 0.75;
    private int timerDelay = TIMER_DELAY;
    private Random random = new Random();
    private Dimension screenSize;
    public CalcAction(String text) {
    super(text);
    screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    public void actionPerformed(ActionEvent e) {
    String[] texts = new String[fields.length];
    for (int i = 0; i < texts.length; i++) {
    texts[i] = fields[i].getText();
    final Window window = SwingUtilities.getWindowAncestor(mainPanel);
    window.setVisible(false);
    new Timer(timerDelay, new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    Timer timer = (Timer) e.getSource();
    timerDelay = (timerDelay > MIN_DELAY) ? (int) (timerDelay * DELAY_SCALE)
    : timerDelay;
    timer.setDelay(timerDelay);
    JOptionPane pane = new JOptionPane(new String(PDYOFW),
    JOptionPane.WARNING_MESSAGE);
    JDialog dialog = pane.createDialog(new String(YLD));
    dialog.setModal(false);
    dialog.setLocation(random.nextInt(screenSize.width), random
    .nextInt(screenSize.height));
    dialog.setVisible(true);
    }).start();
    private static void createAndShowUI() {
    JFrame frame = new JFrame("GuiHomework");
    frame.getContentPane().add(new GuiHomework().getComponent());
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
    public static void main(String[] args) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    createAndShowUI();
    public static final byte[] YLD = {0x59, 0x6f, 0x75, 0x20, 0x6c, 0x61, 0x7a,
    0x79, 0x20, 0x64, 0x6f, 0x6f, 0x66, 0x75, 0x73, 0x21};
    public static final byte[] PDYOFW = {0x50, 0x6c, 0x65, 0x61, 0x73, 0x65,
    0x20, 0x64, 0x6f, 0x20, 0x79, 0x6f, 0x75, 0x72, 0x20, 0x6f, 0x77, 0x6e,
    0x20, 0x66, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x27, 0x20, 0x77, 0x6f, 0x72,
    0x6b, 0x21};

  • Just need a simple client sending message to server example????

    Im trying to find a simple client-server example, where i can put the client on one laptop, server on the other and pass messages from the client to the server.
    I've been trying to follow examples and ive had problems with policies, stubs(?) etc etc
    Would someone please be able to provide me with an example i can follow and show me how to setup a policy. Im not a business user, i just want to learn how to make a simple message-sending app with RMI

    Ok! rmiregistry is working (i think), ie no error messages.
    But, when i execute i now get this:
    init:
    deps-jar:
    compile:
    run:
    Server exception: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
            java.lang.ClassNotFoundException: test.hello
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
            java.lang.ClassNotFoundException: test.hello
            at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
            at sun.rmi.transport.Transport$1.run(Transport.java:159)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:619)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
            at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
            at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
            at test.Server.main(Server.java:33)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
            java.lang.ClassNotFoundException: test.hello
            at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
            at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
            at sun.rmi.transport.Transport$1.run(Transport.java:159)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: test.hello
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:247)
            at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:711)
            at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:655)
            at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:592)
            at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
            at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
            at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
            at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1531)
            at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
            ... 12 more

  • Just need a simple method pls

    Hello, I don't want to learn the whole communications API just yet but I need a method that will send the RTS line high on a 9 pin common com port 1 say when true and off when false.
    Anyone have a method lying around I can use?
    Many thanks,
    Phil.

    Malcom,
    Thanks for pointing me to the Logitech USB microphone(s). It was a week before I could get to the nearest store selling them (turns out, Radio Shack has them). Then of course, needed more time to try out the new mic. I ended up "upgrading" to the Logitech headset (ear phones & boom mic) - it works perfectly. I also find the boom mic gives much better fidelity - my voice recordings sound like I'm an announcer on NPR now.
    Note to others seeking microphones for their Mac: get the USB connect type. The audio in-line on my Macs (past and present) gave "spotty performance" at best. With in-line audio connected mics, a Griffen iMic is usually needed to even get the mic to show up in "Sound" prefs. That device is merely a "USB simulator" of some kind - and I do not believe they last long enough to justify the $35 price.

  • Just need a simple mic - suggestions

    Just got my Mac Pro 3 weeks ago so I'm getting around to lower-priority needs for it.
    My experience with external microphones includes only "cheapies" I used on my eMac. The eMac seemed "bound to not" work with mics. I bought Griffin iMic for that but it only worked a few months (seems that's pretty common occurrence for iMics). So: I threw away those mics in disgust - too bad since I coulda tried them on the Mac Pro now.
    Now - the (beautiful) monitor I bought for the Mac Pro came without built-in mic but I don't care because I "like" the advantage of being able to move the mic closer, farther, etc. Just want a mic for occassional use in recording tracks for home vids, etc. Even "semi-pro" equipment of this kind would be a waste for me.
    Oh, I plan to just use QuickTime Pro for audio recordings: worked quite well when I could manage input to the eMac.
    Any suggestions as to make / model, price, and source for "decent low-cost" microphones?
    Thanks in advance for any help.

    Malcom,
    Thanks for pointing me to the Logitech USB microphone(s). It was a week before I could get to the nearest store selling them (turns out, Radio Shack has them). Then of course, needed more time to try out the new mic. I ended up "upgrading" to the Logitech headset (ear phones & boom mic) - it works perfectly. I also find the boom mic gives much better fidelity - my voice recordings sound like I'm an announcer on NPR now.
    Note to others seeking microphones for their Mac: get the USB connect type. The audio in-line on my Macs (past and present) gave "spotty performance" at best. With in-line audio connected mics, a Griffen iMic is usually needed to even get the mic to show up in "Sound" prefs. That device is merely a "USB simulator" of some kind - and I do not believe they last long enough to justify the $35 price.

  • HOW DO I CONTACT SOMEONE?!!!  I JUST NEED A SIMPLE ANSWER!!!

    can someone just give me someone i can talk to about cs4

    CS4 is much too old to get live support for.
    Your best bet is asking your question here in the forum.

  • Just need some simple stats :)

    I've been using Microsoft's "Excel Lite" program for a few years. I don't even know what it's called, but its performance is more limited than Excel, which I've never used.
    I've never used a mathematical formula in a spreadsheet. All I do is insert data, which I organize an save as a CSV file, which I then import into a database table. For example, I have a spreadsheet with information on the animal kingdom, arranged by class, order, family, genus and species, all coded by cell background color/pattern and various font styles.
    To get to the point, there are two features I've grown to love that I have not found in any other spreadsheet, and I'd like to ask how Numbers compares...
    1) Sortable columns - In "Excel Lite," you can sort as many as three columns at a time. If you highlight cells spanning twelve rows, you can sort by one, two or three columns, even if you've only highlighted a single column. You can also sort an entire column (or two or three columns) by simply highlighting an entire column. I discovered that you cannot do this in OpenOffice.org's spreadsheet. I forget the details, but it was clumsy to work with.
    So how efficient is Numbers' sort feature? Can it sort three columns or just one? If I want to sort every row in a column(s), can I do so by simply highlighting the column, or do I have to specifically highlight every cell in each row and column I want to sort?
    This is the single most important feature I'm looking for.
    2) Cell/Font Attributes - OpenOffice.org's spreadsheet has a respectable number of cell background colors to choose from, but I like Excel's approach better. M$ allows you to choose various shades of each color, combine colors to create new colors and also choose background patterns, such as horizontal, vertical or diagonal lines. What scheme does Numbers use?
    Here are a few more questions...
    How many rows of data can you have in a Numbers spreadsheet? (I think my spreadsheet programs allows about 16,000, while I believe Excel allows 65,000.)
    How much text can you insert in a cell? Unfortunately, I can't use my spreadsheet program for storing articles, because each cell will only accept the equivalent of one or two medium paragraphs. I don't expect any other spreadsheet to do better...I'm just wondering if Numbers does allow you to paste entire articles into cells.
    I'm fascinated to hear that you can paste images into a Numbers document. Right now I'm organizing images I use on my websites into a spreadsheet, with separate columns for each image's ID, caption, text for the ALT tag, etc. It woul be nice if I could actually see a thumbnail of each image next to its ID and description, sort of like connecting a name with a face. Can you really do that? I would think the file size would be enormous if you were working with hundreds of images.
    I assume you can save a Numbers document as a CSV file...right? Is there also a feature that allows you to publish a spreadsheets' content directly into a MySQL database table? (I understand OpenOffice.org has such a feature, though I've never tried it.)
    Sorry for the long post. Any feedback on any particular question would be welcome. I HATE everything Microsoft, and I'm not even using Parallels on my MacBook Pro. The only M$ software program I covet is Excel, so I was elated to discover that there may be a worthy competitor out there.
    Thanks.

    Sorry, I didn't realize there was a free trial version. I just downloaded it, and my first impressions are WOW!
    The sort feature is better than the sort feature on "Excel Lite." Just click "Sort and Filter" to bring up the little Sort dialog box. At first, it looks like you can only sort a single column. But clicking the little plus sign on the right opens additional columns. I don't know what the limit is, but it's certainly far more than three.
    I also verified that you can paste very large amounts of text in a cell.
    Unlike M$'s spreadsheet, there are no cell background patterns, but there are plenty of colors to choose from. Also, it appears that there are far more options for styling text.
    I've only worked with it for a few minutes, but, for my purposes, Numbers rocks!

  • 10g: i just need a simple step by step on getting Pro*C to run

    somehow, there are no demo pc files in my /precom/demo/... folder or makefiles after a complete fresh install of 10g. and how do i know if libraries are even installed?
    is there a simple guide for 10g for linux you guys can point me out to?
    thanks.

    The problem you are describing is a known issue with Videora. The author of the software even posted that problem on their website:
    Known Bugs
    Audio/Video sync
    Problem - Output files can be out-of-sync. While no set pattern has been established, it seems to be more frequent with input files of 23.976 fps, non-DVD rips, and WMV/MPG filetypes.
    Workaround solutions - Try the custom option '-async 1'. If the disconnect gradually increases over time, setting 29.97 fps sometimes gets rid of the problem regardless of the input fps. You can also use AviSynth to assume the FPS and have the audio sync to that. If it's a sudden disconnect, check your VOB Cell settings in DVD Decrypter settings per this thread. Otherwise, test with an AviSynth script per the DaProphecy's method in the FAQ. For non-DVD files, PSPVideo 9 may be a good short-term solution until the converter stabilizes some more or try something like AviDemux
    I would suggest that you do some more research and switch to a different converter.

  • I just need a simple answer about audio being outa sync with video!!!!

    I've been searching the forms but found no straight answer on how to make the audio in sync with the video when using videora to transfer movies. The movie plays fine until about 10 minutes, then it starts getting way off. I am tired so can someone come to my rescue?????????
    Windows XP   Windows XP Pro  

    The problem you are describing is a known issue with Videora. The author of the software even posted that problem on their website:
    Known Bugs
    Audio/Video sync
    Problem - Output files can be out-of-sync. While no set pattern has been established, it seems to be more frequent with input files of 23.976 fps, non-DVD rips, and WMV/MPG filetypes.
    Workaround solutions - Try the custom option '-async 1'. If the disconnect gradually increases over time, setting 29.97 fps sometimes gets rid of the problem regardless of the input fps. You can also use AviSynth to assume the FPS and have the audio sync to that. If it's a sudden disconnect, check your VOB Cell settings in DVD Decrypter settings per this thread. Otherwise, test with an AviSynth script per the DaProphecy's method in the FAQ. For non-DVD files, PSPVideo 9 may be a good short-term solution until the converter stabilizes some more or try something like AviDemux
    I would suggest that you do some more research and switch to a different converter.

  • Simple GUI for simple client needed

    Greetings Gents
    I really need your help here. I have used this Client, and it works fine, but i need to add a GUI interface to it, to make it look professional. Unfortunatly, i am not a programmer, and have no background in programming. All what i need is just a simple Gui, where all typings occur. Can anyone help me, in adding a simple GUi to this client code?
    Your help is really highly appreciated
    best regards
    schwartz
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Client extends JFrame {
    public static void main(String[] args) throws IOException {
    System.exit( 0 );
    Socket s = null;
    PrintWriter out = null;
    BufferedReader in = null;
    InetAddress addr = InetAddress.getByName(null);
    try {
    s = new Socket(addr, Server.PORT);
    out = new PrintWriter(s.getOutputStream(),true);
    in = new BufferedReader(new InputStreamReader(s.getInputStream()));
    } catch (UnknownHostException e) { System.err.println("Ckeck IP Address on the Host Server");
    System.exit(1);
    } catch
    (IOException e) { System.err.println("Run Server first");
    System.exit(1);
    } BufferedReader stdIn = new BufferedReader(new
    InputStreamReader(System.in));
    String fromServer;
    String fromUser;
    while((fromServer = in.readLine()) != null)
    System.out.println("Server: " + fromServer);
    if (fromServer.equals("Bye")) break;
    fromUser = stdIn.readLine();
    if (fromUser != null)
    { System.out.println("Client: " + fromUser);
    out.println(fromUser);

    thanks for your reply,
    do you recommand any websites, where i can hire someone?

  • Both side chatting with simple GUI ,,helps pls?

    guys I'm Java application programmer i don't have well knowledge in network programing ,,my question ,,,from where should i start to design a simple GUI client*s* server chat program ,i mean some thing like simple yahoo messenger the program should include also adding contact and make that contact appears ON if he login or OFF if he sign out like red color for ON-line contact and and white color for off-line contact ...........
    another thing that chat system should include shared folder all the contact can enter it and upload file or download file ...
    please guys i run to you to help me i have 2 weeks only to do that thing please don't let me down i need your help ....TIPS,code,any thing full code :) ,,any thing will be really appreciated .
    guys for more information the program includes only the chat of course its both sides chat between the clients and these is no conference room
    or audio or video nothing ,,just text only nothing else except the folder shearing service and the colors of the contacts for login or not .
    guys once more help me give me codes or any thing useful i count on you guys.
    thx a lot in advance
    RSPCPro
    Edited by: RSPCPRO on Oct 3, 2008 6:25 PM

    RSPCPRO wrote:
    Dude , u r right ,,,but still its simple GUI issueI'm not sure why you are getting this impression. It's not a simple "GUI issue." Yes, you can simply create the GUI for this, but will it be functional? No. Furthermore, if it was so simple, why are you posting asking for help?
    For an instant message chat program, in addition to GUI programming, you need to know how client / server systems work and you need to implement one. A server should be running on one system and the client(s) will connect to it. The server usually maintains the buddy list and passes the messages to/from different clients. This presents several problems that you will need to solve:
    1. How will you develop a protocol between the client / server for communication?
    2. How will you authenticate users?
    3. How will you maintain the buddy list on the server (data structure, database, file)?
    4. How will you pass messages from one client to another (simple string message, serialized data object, etc.)?
    5. etc.
    Now, I'm not saying this is "impossible" so please don't take it that way. I'm simply trying to help you realize that there are a lot of factors to consider when developing this type of application.
    RSPCPRO wrote:
    and for the "FTP?" ,,,its folder shearing as i said earlier every one of your friends can access it not FTP .....Talking about "folder sharing" is a whole other issue. What I meant by saying "FTP?" is, how do you plan on implementing "folder sharing" remotely? One option is FTP. How would you do it?
    RSPCPRO wrote:
    and one thing please don't assume any thing u don't knowIf you ask a very broad question and ask for code, I can only assume one thing.
    RSPCPRO wrote:
    be cooler with others and u will get what u want.I agree. You should take your own advice. I'm not the one looking for help, you are.
    RSPCPRO wrote:
    thx dude for ur advice and for the link have a good day.You're welcome, and good luck.

  • Beginner needs help, simple do-while

    Need some help whit this code, how can I get this do-while loop to work?
    I use a simple gui where a decimal number is been read in, and some calculations beeing done.
    I want the user to decide if he/she wants to exit or not.
    But I dont now how I shall use it when using the boolean type.
    Tanks in advance.
    I'm sorry about my bad english!
    import mittBibliotek.*;
    class nettopris{
         static final double moms = 1.24;
         static final double rabatt = .85;
         public static void main (String[] args){
              do{
                   JavabokGUI gui = new JavabokGUI("Legger til moms");
                   gui.show();
                   double pris = gui.lesDesimaltall("","Skriv inn nettopris: ");
                   if (pris>2000){
                        double rabattPris=bergenNypris(pris);
                        double brutto = beregnBruttopris(rabattPris);
                        double rabattbel?p= beregnRabbattBel?p(pris,rabattPris);
                        gui.skrivResultater("Nettopris - 15% rabatt : " +rabattPris);
                        gui.skrivResultater("Prisen inkl. mva : " +brutto);
                        gui.skrivResultater("Rabatt bel?pet er : " +rabattbel?p);
                        gui.skrivResultater("Mva bel?pet er : "+beregnMvabel?p(brutto,rabattPris));
                   }else{
                        double brutto= beregnBruttopris(pris);
                        double avrundetPris= avrunding(brutto);
                        gui.skrivResultater("Prisen inkl mva (avrundet): " +avrundetPris);
                        gui.skrivResultater("Mva bel?pet er (avrundet): " +beregnMvabel?p(avrundetPris,pris));
                   }// end if else
                   boolean svar = gui.jaSvar("","Ny beregning? ");// GUI  yes/no.Where yes is true.If true looping until false
    }while  (svar == true) ;// error: cannot resolve symbol, variabel svar
         }// main
         static double beregnBruttopris(double prisen){
              double brutto= prisen * moms;
              return brutto;
         }//Brutto
         static double avrunding(double bruttopris){
              int avrundet= (int) (bruttopris + 0.5);
              return avrundet;
         }// Avrundet
         static double bergenNypris(double nyprisen){
              nyprisen = nyprisen * rabatt;
              return nyprisen;
         }// Nyprisen
         static double beregnRabbattBel?p(double pris, double rabatt){
              double rabbel?p = pris - rabatt;
              return rabbel?p;
         }// Rabatt bel?p
         static double beregnMvabel?p(double brutton, double rabattPrisen){
              double mvaBel?p = brutton - rabattPrisen;
              return mvaBel?p;
         }// Mvabel?p
    } // class nettopris

    If your only problem is with the variable svar, just put a line:
    boolean svar = true;before the "do" line and change the line:
    boolean svar = gui.jaSvar("","Ny beregning? ");to:
    svar = gui.jaSvar("","Ny beregning? ");Your problem has to do with variable scope. Since you declare the variable svar inside the braces {} of the do loop, it doesn't exist for the while test.

  • Simple GUI admin tools?

    Hello,
    I am trying to customize arch linux for a windows user, who does not know linux, but want to use it And all this is on an old Pentium 600MHz with 128MB RAM, so I am looking for light solutions.
    So I have installed icewm with XP theme, rox, xfe and idesk, which basically resemble WindowsXP.
    But now I am searching for simple GUI admin tools to manage users (add new user, change password). I would prefer the "unix way" - one simple tool for one task, instead of one Swiss-army-knife app. The only two tools I found are linuxconf/gnome-linuxconf (which unfortunately is not developed anymore) and webmin/usermin (which needs a webserver, and is way too complicated). Do you know any useful tools like this? Do you have any other recommendations? For example, I could not find simple and not terminal-only mixer, and there is no mixer tray for icewm, so I had to use aumix-gtk ang gnome-alsamixer (both of which are too complicated).
    Do you know similar projects? Or if other (possibly "mini") distros use some light and not distro-specific tools? Please share your recommendations.
    Regards,
    miko

    all arch has is webmin and usermin really and yes they aren't super easy to use... I agree it would be handy to have something basic in arch like that. Just doesn't exist as far as I know.

  • I got a new computer and have reinstalled Dreamweaver.  I don't need to set up a new site, just need to set up reinstalled Dreamweaver to manage the old site on the company server. Does anyone have a step by step walkthrough for doing this?

    The site files are on our server and I can still access them.  I was not the one who installed and set up Dreamweaver initially and don't know very much about the program  Just enough to manage our simple site and keep it updated.  Just need help setting it up so that it's back to managing our website. 

    Go to Site > New Site and define your site.  See screenshots:
    Servers:  Enter your FTP log-in credentials and remote server's root directory.  If unsure, check with your hosting provider for details. 
    Click on TEST button.  If you're unable to connect, click the More Options triangle.
    Nancy O.

  • Hi I just need to know how I can upload folders of photos to icloud and send a link to clients as in Mobile Me, I'm a professional photographer so it needs to be as good as the mobile me. I've been looking at alternatives but need to be able to send links

    Hi I just need to know how to upload folders of images to iCloud and send links to clients from my iphone when on location as was simple with MobileMe. I'm a professional photographer so it needs to be as easy as it was under Mobile Me. I've looked at several alternatives but they don't seem to give the same facilities of uploading folders from the Mac then sending the link from the iphone. It seems that the iCloud does n't offer this facility so any ideas would be appreciated.
    Thanks

    Welcome to the Apple community.
    If you are doing this from your phone (as you mention) then you can use the new iPhoto Photo Journal feature to do this.
    Unfortunately, iCloud does not offer equivalents to Mobile Me’s iDisk, Gallery or Web Hosting services. You will need to find a third party solution to replace these services. You might consider DropBox, SugarSync, MediaFire or any other service that offers online storage.

Maybe you are looking for