Gui Interface

Hi Im quite new to programming and thus need your help.
public void click(int x, int y) {
public void draw() {
gui.drawGrid();
gui.drawCircle(X,Y);
gui.drawCross(A,B);
public static void main(String s[])
// Create the user game.
TicTacToe game = new TicTacToe();
// Associate the game and gui so they
// may call each other's methods.
TicTacToeWindow window = new TicTacToeWindow(game);
game.gui = window;
window.start();
this plus another class which has already been defined is what i have to work with. In effect it is a tic tac toe game. I have already set up the Game board situation. Now all i need to know is how to convert the mouse clicks into drawing using the public void draw() method. Any help will be greatly appreciated. Thanks!

Also, if you're truly a complete novice, you may want to look at the following resources for starting out:
The Java™ Tutorial - A practical guide for programmers
Essentials, Part 1, Lesson 1: Compiling & Running a Simple Program
New to Java Center
How To Think Like A Computer Scientist
Introduction to Computer Science using Java
The Java Developers Almanac 1.4
JavaRanch: a friendly place for Java greenhorns
jGuru
Bruce Eckel's Thinking in Java
Joshua Bloch's Effective Java
Bert Bates and Kathy Sierra's Head First Java

Similar Messages

  • What is better/easier  GUI Interface and Code

    I'm trying to write a GUI interface that will constantly update a bunch of variables with whatever the user inputs. Is it better to make a GUI and then try to pass the updates back to other underlying code which is in seperate Classes and methods or is it better to combine the two with the updates right in the GUI code itself.
    Right now I have made the basics of the GUI but I haven't really implemented any underlying code (I've made the robot but I don't have the servos to make it move -- as an analogy). Comments?

    Ideal system design has separation between the view and the underlying data model. Preferrably there is a 3rd intermediary, a controller. That's the MVC design pattern. However, how far you implement that pattern depends on the purpose of the program and the complexity of the data model. A simple program you can probably just implement it all right there in the GUI. It won't follow proper software development principles, but we have those so we can deal with large, complex systems. Another thing to consider is what the user input is used for. If it is not required beyond the GUI then I'd say put it in the GUI (since iot really is part of the GUI). But if it's to be used somewhere else, pass the data to the model.

  • Creating GUI interface for cof

    I am attempting to create a GUI interface on Labview that will read the measurements from a load cell ( Futek model L2331) that is connected
    through a DAQ interface and  will output Coefficient of friction measurements vs time.  I would also like to be able to save the data to a file (eg...excel). 
    Can anyone help me out with this?
    JC

    What I suspect you need, more for comparison than anything else, is the Force in Newtons not the strain in µ strain.
    So one technique is to leave the input in volts and then figure out how many grams of weight gives how many volts from the load cell, and applying the necessory factors to give the force in Newtons unless of course your working in Christian units (lbs force).
    Either way, strain or volts you are going to have to calibrate the input. Unless the factors are all ready supplied. to arrive at the following
    "The
    coefficient of friction is simply µ =  Fspring /Fnormal
    =  Fspring /(mblock ·g
    ), g=9.81 m/s²"  Notice that there is no mention of strain here but force.
    Strain is defined as: - "The relative deformation of an object subjected to stress. Hence, strain is dimensionless."
    Don't forget to get the sense of compression and tension correct for the displayed units.

  • Runniing Application with GUI interface

    Before when i have run a application it has been through the DOS terminal , thus without a GUI. My experince with GUI has been with Applets and running them through a browser or the appletviewer.
    The question is how do I run an application program with a GUI interface for testing purposes etc.
    Any help would be great cheers.

    You can run your application from the command line just like from you DOS terminal programs. All you need is the main method defined for you application in some class file. For example:
    public static void main( String[] args ) {
    JFrame frame = new JFrame();
    frame.getContentPane().add( new JLabel("Hello world" );
    frame.pack();
    frame.setVisible( true );
    Then run this code by:
    java my.test.HelloWorld
    charlie

  • GUI interface for non-global zones

    My Goal:
    Create multiple zones, each running different services thus eliminating the need for multiple servers w/out using VMware.
    What I'm realizing:
    Everything I've read points back to non-global zones being only a console based environment. Does anyone know if it's possible to login to non-global zones with a GUI interface?
    Thanks,
    Rick

    We use the CDE login mechanism. From the CDE login screen on the global zone:
    [] Select Options, Remote Login, Enter Host Name from the CDE login screen.
    [] Enter the hostname (not the zone name!) of the non-global zone in the Enter the host name box.
    [] Click OK.
    [] Once the CDE login screen appears with the hostname of the non-globalzone listed at the top, log in as sysadmin.
    Notes: If the non-global zone or the system was recently booted, wait a few minutes and check to make sure that the cde-login service is running using the command:
    svcs -a | grep cde-login
    Also, if you have restricted /etc/Xaccess, you'll need to add your non-global zone to it.
    Message was edited by:
    r2ad
    Message was edited by:
    r2ad, http://www.r2ad.com

  • Problem when applying my changes at the CCA Administrator GUI Interface

    Hi when i´m trying to save my changes at the CCA Administrator GUI interface(TAW) i´m receiving the error below:
    04 Ago 2009 11:17:39,968 [ ERROR com.taw.clients.am.AdminSuperBean $Revision: 5 $.processHashtable(AdminSuperBean.java:504) - Unable to process the Hashtable
    java.lang.NullPointerException
    at com.taw.clients.am.AdminSuperBean.constructSqlQuery(AdminSuperBean.java:796)
    at com.taw.clients.am.AdminSuperBean.processHashtableAdmin(AdminSuperBean.java:562)
    at com.taw.clients.am.AdminSuperBean.processHashtable(AdminSuperBean.java:500)
    at com.taw.clients.am.AdminSuperBean.processHashtable(AdminSuperBean.java:493)
    at com.taw.clients.am.configuration.CompanyDefaultSecurityBean.processRequest(CompanyDefaultSecurityBean.java:212)
    at com.taw.clients.am.CompanyBean.processRequest(CompanyBean.java:1771)
    at jsp_servlet._administrationmanager.__company_edit._jspService(__company_edit.java:1289)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3392)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Please anyone know how can i fix it ?
    Regards,
    Marcelo Henrique
    Experti - Brazil

    Hi below the contents of the web.xml file, let´s to try to fix this trouble together.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app>
    <context-param>
    <param-name>webContainer</param-name>
    <param-value>Weblogic</param-value>
    </context-param>
    <context-param>
    <param-name>disableMessageSynchronization</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>busConnection</param-name>
    <param-value>experti-labsrv</param-value>
    </context-param>
    <context-param>
    <param-name>noResourceBundle</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>reportServerUrl</param-name>
    <param-value>http://experti-labsrv/TAW</param-value>
    </context-param>
    <context-param>
    <param-name>isReportServer</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>applicationPath</param-name>
    <param-value>C:\bea\user_projects\domains\experti_domain\app\TAW</param-value>
    </context-param>
    <context-param>
    <param-name>URLstoragePath</param-name>
    <param-value>http://experti-labsrv/TAW/Storage</param-value>
    </context-param>
    <context-param>
    <param-name>storagePath</param-name>
    <param-value>/Storage</param-value>
    </context-param>
    <context-param>
    <param-name>debugLogFile</param-name>
    <param-value>\WEB-INF\logs\CallCenterAnywhere.log</param-value>
    </context-param>
    <context-param>
    <param-name>debugMaxNumberLogFiles</param-name>
    <param-value>5</param-value>
    </context-param>
    <context-param>
    <param-name>debugMaxLogFileSize</param-name>
    <param-value>1000</param-value>
    </context-param>
    <context-param>
    <param-name>debugTracelevel</param-name>
    <param-value>DEBUG</param-value>
    </context-param>
    <context-param>
    <param-name>debugLogPattern</param-name>
    <param-value>%d{DATE} [%t] %-5p %c.%M(%F:%L) %x - %m</param-value>
    </context-param>
    <context-param>
    <param-name>databasePlatform</param-name>
    <param-value>ORACLE</param-value>
    </context-param>
    <!-- Needs to be removed for MSSQL-->
    <context-param>
    <param-name>databaseDatasource</param-name>
    <param-value>cca813</param-value>
    </context-param>
    <context-param>
    <param-name>databaseSchema</param-name>
    <param-value>mhpAdminCC813</param-value>
    </context-param>
    <!-- <context-param>
    <param-name>databaseUser</param-name>
    <param-value>mhpcc813</param-value>
    </context-param>
    <context-param>
    <param-name>databasePassword</param-name>
    <param-value>mhpcc813</param-value>
    </context-param> -->
    <context-param>
    <param-name>databaseDatasourceReadOnly</param-name>
    <param-value>cca813</param-value>
    </context-param>
    <context-param>
    <param-name>databaseSchemaReadOnly</param-name>
    <param-value>mhpAdminCC813</param-value>
    </context-param>
    <!-- <context-param>
    <param-name>databaseUserReadOnly</param-name>
    <param-value>MHPCCRead813</param-value>
    </context-param>
    <context-param>
    <param-name>databasePasswordReadOnly</param-name>
    <param-value>MHPCCRead813</param-value>
    </context-param> -->
    <context-param>
    <param-name>weblogic.httpd.inputCharset./*</param-name>
    <param-value>UTF-8</param-value>
    </context-param>
    <context-param>
    <param-name>ftpConnectMode</param-name>
    <param-value>active</param-value>
    </context-param>
    <servlet>
    <servlet-name>ProxyDispatcher</servlet-name>
    <servlet-class>com.taw.web.ProxyDispatcher</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>ProxyPingHandler</servlet-name>
    <servlet-class>com.taw.web.ProxyPingHandler</servlet-class>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>ProxyLoginHandler</servlet-name>
    <servlet-class>com.taw.web.ProxyLoginHandler</servlet-class>
    <load-on-startup>3</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>ProxyLoginDataHandler</servlet-name>
    <servlet-class>com.taw.web.ProxyLoginDataHandler</servlet-class>
    <load-on-startup>4</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>ProxyContactHandler</servlet-name>
    <servlet-class>com.taw.web.contact.was.ProxyContactHandler</servlet-class>
    <load-on-startup>5</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>WebServiceChat</servlet-name>
    <servlet-class>com.taw.web.service.WebServiceChat</servlet-class>
    <load-on-startup>6</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>ReportServlet</servlet-name>
    <servlet-class>com.taw.clients.reports.ReportServlet</servlet-class>
    <load-on-startup>7</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>CustomReportServlet</servlet-name>
    <servlet-class>com.taw.clients.reports.CustomReportServlet</servlet-class>
    <load-on-startup>8</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>ImageServlet</servlet-name>
    <servlet-class>net.sf.jasperreports.j2ee.servlets.ImageServlet</servlet-class>
    <load-on-startup>9</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>ProxyRequestHandler</servlet-name>
    <servlet-class>com.taw.web.ProxyRequestHandler</servlet-class>
    <load-on-startup>10</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>glue-console</servlet-name>
    <servlet-class>electric.console.ConsoleServlet</servlet-class>
    <init-param>
    <param-name>soapServletContext</param-name>
    <param-value>/services</param-value>
    </init-param>
    <load-on-startup>11</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>glue-soap</servlet-name>
    <servlet-class>electric.server.http.ServletServer</servlet-class>
    <init-param>
    <param-name>httpRegistryRoot</param-name>
    <param-value>/</param-value>
    </init-param>
    <load-on-startup>12</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
    <init-param>
    <param-name>logLevel</param-name>
    <param-value>DEBUG</param-value>
    </init-param>
    <init-param>
    <param-name>logPath</param-name>
    <param-value>C:\bea\user_projects\domains\experti_domain\app\TAW\WEB-INF\logs\jnlpdownloadservlet.log</param-value>
    </init-param>
    <load-on-startup>13</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>ProxyMessageHandler</servlet-name>
    <servlet-class>com.taw.web.ProxyMessageHandler</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>ProxyWebCallback</servlet-name>
    <servlet-class>com.taw.web.webcallback.ProxyWebCallback</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>ProxyDial</servlet-name>
    <servlet-class>com.taw.web.dial.ProxyDial</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ProxyDispatcher</servlet-name>
    <url-pattern>/ProxyDispatcher</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ReportServlet</servlet-name>
    <url-pattern>/ReportServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ProxyPingHandler</servlet-name>
    <url-pattern>/ProxyPingHandler</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ProxyLoginHandler</servlet-name>
    <url-pattern>/ProxyLoginHandler</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ProxyLoginDataHandler</servlet-name>
    <url-pattern>/ProxyLoginDataHandler</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ProxyContactHandler</servlet-name>
    <url-pattern>/ProxyContactHandler</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>WebServiceChat</servlet-name>
    <url-pattern>/WebServiceChat</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ProxyRequestHandler</servlet-name>
    <url-pattern>/ProxyRequestHandler</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ProxyMessageHandler</servlet-name>
    <url-pattern>/ProxyMessageHandler</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ProxyWebCallback</servlet-name>
    <url-pattern>/ProxyWebCallback</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ProxyDial</servlet-name>
    <url-pattern>/ProxyDial</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>glue-soap</servlet-name>
    <url-pattern>/services/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>glue-console</servlet-name>
    <url-pattern>/console/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <url-pattern>*.jnlp</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <url-pattern>*.jar</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>CustomReportServlet</servlet-name>
    <url-pattern>/CustomReportServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ImageServlet</servlet-name>
    <url-pattern>/imageServlet</url-pattern>
    </servlet-mapping>
    <filter>
    <filter-name>XSS</filter-name>
    <filter-class>com.taw.web.filter.CrossScriptingFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>XSS</filter-name>
    <url-pattern>/AdministrationManager/*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>XSS</filter-name>
    <url-pattern>/index.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>XSS</filter-name>
    <url-pattern>/InteractionManager/*.jsp</url-pattern>
    </filter-mapping>
    </web-app>

  • How to create custom GUI interface for Cisco router?

                       Hello,
    I am working on a Cisco solution and I have my router configured for the solution I need. However, if a non-cisco person needs to use my solution then I think he will need a GUI interface which will have few "buttons" which when clicked will run some Cisco commands on Cisco router to make it work. Is there a way to design such GUI interface which is compatible with Cisco routers? I know Cisco has SDM, but that is too involved and detailed, which is useful only for people who know atleast a little bit about Cisco. Here I am looking at crowd who will have 0 knowledge of Cisco.
    Please let me know if something like this can be done. If yes, how and how easily?
    Thank you.

    There are lots of ways to do this - you can use SNMP or even HTTP to push or pull commands from Cisco devices. How easy it is to create a GUI depends on your programming skills. I would guess a simple web page triggering backend scripts would be the easiest way to do this.

  • Dynamically build web GUI interface

    Hi,
    I am planning to build web GUI interface. Instead of desiginning statically, I want to store GUI meta data in a xml file and build web GUI from the meta data.
    I would like to know if there any java tools available already to build web GUI from meta data.
    THanks
    RR

    Hi,
    I am planning to build web GUI interface. Instead of
    desiginning statically, I want to store GUI meta data
    in a xml file and build web GUI from the meta data.
    I would like to know if there any java tools
    available already to build web GUI from meta data.
    THanks
    RRWell, if you use Swing with a JApplet then you are dynamically creating the user interface. The components are added at runtime, not when you compile the programs. All you need to do is drive which controls to add by some stored data. The same is true for HTML if you generate your pages at runtime (i.e. not just static HTML files).

  • Not access WLC cisco 2106 by GUI interface

    Hi Expert ,
                    i am trying to configure it but i can not access GUI interface.it is true this is my frist time.please help me to access this GUI interface.

    I assume you have read through the Quick start guide for the 2106 controller?
    http://www.cisco.com/en/US/docs/wireless/controller/2100/quick/guide/ctrl206q.html
    Also the configuration guide covers connecting via cli and gui:
    http://www.cisco.com/en/US/docs/wireless/controller/5.2/configuration/guide/c52intf.html

  • Problem Configuring from CUE GUI interface.

    Hello all,
    I am installing a CUE-AIM module. I have configured Ip connectivity between the module and the router. i have all GUI files in flash, but i cannot get to the GUI interface of the CUE. I can however reach the GUI on CCME.
    I have attached a copy on the sh run and show flash.
    I really need you help.

    If I'm not mistaken (and this might just be the way we decided to configure it) but I believe that you need to enter a static route to the service module which points to the service engine and then configure the default gateway of the CUE service module pointing to the service engine. The service engine itself can use an unnumber i/f taken from a physical address or a loopback (preferred). Then on your network, either through static or advertised via routing protocol, they will go to CUE via the service engine IP address, not the actual CUE ip address.
    Here's the design guide. We ended up using a small network (4 hosts) for the service engine and the service module.
    http://www.cisco.com/en/US/products/sw/voicesw/ps5520/products_implementation_design_guide_chapter09186a00804993bf.html
    Here are the particulars:
    interface FastEthernet0/0
    ip address b.68.10.1 255.255.255.0
    interface Service-Engine4/0
    ip unnumbered FastEthernet0/0
    service-module ip address b.68.10.10 255.255.255.0
    service-module ip default-gateway b.68.10.1
    ip route b.68.10.10 255.255.255.255 Service-Engine4/0

  • How to add a GUI interface to My program?

    Hi, I wrote a game program, now, I need a GUI interface for my game to let others to use it esaily, but I have no idear how to do it, where should I add the AWT or Swing code to the game code, if possible, can I use some tools for this task, I think it is much esaier for me to use tool, can I use JBuilder4.0, or visual J++6.0, but I know that visual J++ not support jdk1.3, right? Any other good tool for AWT to use, if possible, where to download please?
    thank you!! ^_^

    Generally your GUI code might be in a class extending JFrame, for example. It is good practice to try to keep your GUI separate from the rest of your application. So you can control your application from the GUI by public methods in the main part of the code, calling them from the GUI.
    This is best done by passing an instance of the main application to the GUI when it is constructed. For example:
    public class Host {
      public static void main(String[] args) {
        new Host();
      public Host() {
        GUI iface = new GUI(this);
      public doSomething(int value) {
         // A method that does something,
         // called from the GUI
    public class GUI extends JFrame implements actionListener {
      private Host app;
      public GUI(Host parent) {
        app=parent;
        // Do more stuff here
      // Rest of the GUI here
      public void actionPerformed(ActionEvent ev) {
        // Method called as a result of a button press
        // or something...
        app.doSomething(42);
    }Hope this helps a bit. Look around on the web for good GUI tutorials.

  • Need help..anyone GUI Interfaces

    http://forum.java.sun.com/thread.jsp?forum=31&thread=472147&tstart=0&trange=15
    Can someone please help me with this program..I'm new to java and I don't understand GUI's. I read everything inside and out in my text book and still don't get how to convert my program into a gui interface...please help.

    Sorry i accidently posted twice...
    But here is my topic incase the link did not work. Thanks! Really desperate!
    Develop a Java application that will determine if a department store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available:
    a) Account Balance
    b) Balance at the beginning of the month
    c) Total of all items charged by this customer this month
    d) Total of all credits applied to the customer&#8217;s account this month
    e) Allowed credit limit
    This program should input each of these facts from input dialogs as integers, calculate the new balance, display the new balance and determine if the new balance exceeds the customer&#8217;s credit limit. For those customers whose credit limit is exceeded, the program should display the message, &#8220;Credit limit exceeded.&#8221;
    Here is the program I wrote : (for the above criteria)
    // Credit.java
    // Program monitors accounts
    import java.awt.*;
    import javax.swing.JOptionPane;
    public class Credit {
    public static void main( String args[] )
    String inputString;
    int account, newBalance,
    oldBalance, credits, creditLimit, charges;
    inputString =
    JOptionPane.showInputDialog( "Enter Account (-1 to quit):" );
    while ( ( account = Integer.parseInt( inputString ) ) != -1 ) {
    inputString =
    JOptionPane.showInputDialog( "Enter Balance: " );
    oldBalance = Integer.parseInt( inputString );
    inputString =
    JOptionPane.showInputDialog( "Enter Charges: " );
    charges = Integer.parseInt( inputString );
    inputString =
    JOptionPane.showInputDialog( "Enter Credits: " );
    credits = Integer.parseInt( inputString );
    inputString =
    JOptionPane.showInputDialog( "Enter Credit Limit: " );
    creditLimit = Integer.parseInt( inputString );
    newBalance = oldBalance + charges - credits;
    String resultsString, creditStatusString;
    resultsString = "New balance is " + newBalance;
    if ( newBalance > creditLimit )
    creditStatusString = "CREDIT LIMIT EXCEEDED";
    else
    creditStatusString = "Credit Report";
    JOptionPane.showMessageDialog(
    null, resultsString,
    creditStatusString,
    JOptionPane.INFORMATION_MESSAGE );
    inputString =
    JOptionPane.showInputDialog( "Enter Account (-1 to quit):" );
    System.exit( 0 );
    AND I NEED TO MODIFY IT TO DO THE FOLLWOING: (I'M A NEWB AND IT'S TAKEN ME FOREVER JUST TO DO THE ABOVE..PLEASE ANY HELP WOULD BE GREAT!!
    Expand the above program.
    1) Design an appropriate GUI for input. You cannot use dialog boxes. Design functional window(s) from scratch. State your conditions in the boxed comment at the top of the class. Input will need a transaction date also for the CustomerHistory class.
    2) Add a customer # ( a unique identifier)
    3) Besides your GUI, you will want 2 other classes: Customer and CustomerHistory. CustomerHistory will serve as a mock database.
    4) CustomerHistory will hold the previous balance & allowed credit limit plus any credit violation history. Your CustomerHistory violations must be an array, so that it could be readily expandable.
    5) Some step-up is necessary &#8211; chose your own approach and document.
    6) Then run your system enough times to show the response when a customer exceeds THREE &#8216;over credit&#8217; limits. CustomerHistory violations should be printed out, as well as, our choice of a &#8216;dunning notice&#8217;. It cannot be the same as a simple one time exceeds limit. Also show a normal customer run. Prove to me your solution works!
    7) Draw the UML diagram of your interconnecting classes.

  • Any gui interface for java db (derby ) such as oracle give sqldeveloper

    hi master
    sir any gui interface for java db (derby ) such as oracle give sqldeveloper that create table and view only mouse clicking
    how i get derby gui interface
    thank'
    aamir

    try db visualizer
    http://www.minq.se/products/dbvis/

  • EW520-24K9-Unable to log into GUI interface

    Can't access the GUI interface of a EW520-24K9 switch. Tried using the serial cable and Ethernet cable with no success. The default IP address of 192.168.10.2, 192.168.10.1 or 192.168.10.254 is not working. Any ideas?

    - Do you have the ESW connected to a network that has a DHCP server such as UC520? If so you may want to check on the DHCP server what IP address is assigned to ESW 520 (MAC address binding). If its a UC520 - then CCA can discover this for you - note make sure you connect the uplink port on the ESW to the UC520 expansion port
    - If the ESW is standalone connected back to back to your PC - have you gone through steps 1 through 8 in Section 2 at the guide below:
    http://www.cisco.com/en/US/docs/switches/lan/csbms/esw500/quick_start/guide/ESW_500_Quick_Start_Guide.pdf
    - If you are using a console cable - make sure the right settings are configured - check page 49 at link below:
    http://www.cisco.com/en/US/docs/switches/lan/csbms/esw500/administration/guide/ESW_500_Administration_Guide.pdf
    If you have tried all of the above - can you factory reset the ESW and try one of the above?

  • GUI Interface to layout your windows

    Hello! I was wondering if anyone knew of a GUI interface that helps layout your windows? Example, a screen that lets you add buttons, text fields, etc. and then gives you the source could behind it. I basically need the help with the layout information (FlowLayout, GridLayout, etc.). Thank you for any information you can provide.

    Check out the UICompiler. First you do the drag and drop in QT Designer, then it compiles the QT description files into Java/Swing classes.
    http://uic.sourceforge.net/

  • NAC CAM 4.8 Unable to Access Web GUI Interface

                     Hello, we were working on trying to get the CAM and CAS to talk by using a Microsoft CA, we imported the Certs that we generated and shortly after that we lost Web GUI access, we are still able to access via SSH and everything appears ok, reloading the server didnt help. Is it possible the Cert was corrupted preventing us from accessing the web GUI interface, how can I regenerate cert and install it from the CLI? Should I look at something else like log files, if so what do I look for?
    Thank you,
    Mark

    Hi Mark,
    this problem also happend to me,
    U might want to check perfigo status with this command :
    /perfigo/common/bin/fostate.sh

Maybe you are looking for

  • Using BAPI's or RFC's to Create a new BI Master Data

    Hello SDN Guys. I am trying to create an application to mantain BI master data and would like to know if you can help me to find a specific RFC or BAPI that I can use in VC .   The parameter should be the infoobject name and their attributes to be cr

  • Pls help in performance tuning SQL

    Hi All, Can someone please help me to tune this quesry. Rt now it is takin 20 mins tro retuns 80,000 rows and its using dblink SELECT COUNT(*) FROM (SELECT /*+driving_site(main)*/CORP_ACTG_PRD_YEAR, CORP_ACTG_PRD_NBR, FCN_CODE, LOCAL_CRNC_CODE, GL_LO

  • Move A Site From Moss 2007 To Sharepoint 2010

    i have a site in sharepoint 2007 and i want to move it to a sharepoint 2010 server not too sure what is the best method to do this ? thanks

  • Why can't I use any of my smart playlist on my iphone 4.

    I have had the hardest time to get any of my podcast that I manually set up in itunes to work.  None of my smart playlist work either.   Itunes shows they are on the phone but they will not play.  It seems as soons as apple introduced the podcast app

  • Camera raw version 7.4

    Is Adobe Camera Raw version 7.4 or higher available for elements 10 or 11?