Trouble updating a GUI interface - in SOS state

hi there,
I have some trouble implementing this GUI related code, but what it basically does is it removes the certain component of the jframe (removes one of jpanels) and attaches a newly created panel.....I posted up the same topic last night, and somebody provided me with helpful hint about using various methods in the class Component (ie Component.add, Component.remove, Component.validate, etc). I looked it up on the java.sun website for these methods, and actually tried them.....it does sort of work, except the interface looks kinda distorted after the update (ie. when i move the mouse cursor around the updated area, some components of the panel appears and disappears. So, without dragging it any further, I will once again explain in detail what I want this program to do, and then provide you with the code (I actually want to validate this code and see whether I am doing things in logical sense.
Basically, the JFrame is divided into the following:
A menu consisting of different integers (the selection of the menu determines
how the interface is being changed) --- Located on very top of the interface
A Jpanel, which contains three different sub-JPanels (used Border-Layout to divide
this)
North panel - contains two checboxes (but this does not has to do with my
topic now)
Centre panel - contains set of labelled radio buttons (THIS CHANGES
UPON THE SELECTION OF THE MENU; THE LABEL BESIDE EACH BUTTONS CHANGE
EVERYTIME THE MENU IS SELECTED)
South panel - contains two JButtons (but again, not a concern at all)
So this is the code, that I wrote in order to update the Centre part of the Main JPanel (ie. remove the sub-JPanel which already exists on the centre and add the newly created JPanel to Centre
p_jvecframe.getContentPane().remove(2);
p_jvecframe.getContentPane().validate();
p_jvecframe.getContentPane().add(jpanelVECTORS, "Center");
p_jvecframe.getContentPane().validate();
p_jvecframe.repaint();Bit confused with one of thing:
from Component.remove(int index), how does this index work? Is this like an array, where the top (or first in case of array) object on the Component is always integer 0?
Your ideas and suggestions would be much appreciated. Thank you in advance.
Regards,
Young

Swing related questions should be posted in the Swing forum.
Generally when you add or remove components from a panel you should use revalidate() on the parent container.
However, in your case maybe a better option is to use the CardLayout, which is designed specifically for this this purpose. Read the Swing totorial on "How to Use a Card Layout":
http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.htmlWhen adding components to a BorderLayout, you don't need to remove the component first since only one component can exist at a given position at any time. So in the case of a BorderLayout, I don't know if "index 2" means anything in particular.
It does make sense for a FlowLayout. Since every component added is just added to the end of the layout. Therefore you can reference the components in the order in which they are painted on the screen.

Similar Messages

  • I have 2 App Store accounts, one from MobileMe time and i want to know if it is possible to merge them as i'm having troubles updating some of my software?

    I have 2 App Store accounts, one from MobileMe time and i want to know if it is possible to merge them as i'm having troubles updating some of my software?
    I have to sign in and out between one and the other constantly and i dont know what to do anymore becouse now i can't update software on either, it keeps on poping up "To update this application, sign in to the account you used to purchase it." and im pretty sure im on the right account.

    Sorry. Apple's policy states that accounts cannot be merged > Frequently asked questions about Apple ID
    Contact Apple for assistance > Contacting Apple for support and service

  • 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.

  • 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>

  • 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.

  • Trouble updating multiple rows in table using subquery

    Hi everyone, I'm having trouble updating multiple rows with a subquery. Here's the setup:
    create table mytable (
    col_a number primary key,
    col_b number,
    col_c number,
    col_d number);
    insert into mytable values (1 ,1,1,15);
    insert into mytable values (2 ,1,2,7 );
    insert into mytable values (3 ,1,3,11);
    insert into mytable values (4 ,1,4,23);
    insert into mytable values (5 ,1,5,14);
    insert into mytable values (6 ,2,1,50);
    insert into mytable values (7 ,2,2,41);
    insert into mytable values (8 ,2,3,13);
    insert into mytable values (9 ,2,4,12);
    insert into mytable values (10,2,5,19);
    insert into mytable values (11,3,1,10);
    insert into mytable values (12,3,2,92);
    insert into mytable values (13,3,3,81);
    insert into mytable values (14,3,4,17);
    insert into mytable values (15,3,5,66);
    insert into mytable values (16,4,1,54);
    insert into mytable values (17,4,2,41);
    insert into mytable values (18,4,3,22);
    insert into mytable values (19,4,4,24);
    insert into mytable values (20,4,5,17);For this example, using an update statement (or merge if that's better), say I want to set the values for col_d where col_b = 3 equal to the values for col_d where col_b = 1 and col_c equal each other. Results should look like the following after the update:
    col_a col_b col_c col_d
    1     1     1     15
    2     1     2     7
    3     1     3     11
    4     1     4     23
    5     1     5     14
    6     2     1     50
    7     2     2     41
    8     2     3     13
    9     2     4     12
    10    2     5     19
    11    3     1     15
    12    3     2     7
    13    3     3     11
    14    3     4     23
    15    3     5     14
    16    4     1     54
    17    4     2     41
    18    4     3     22
    19    4     4     24
    20    4     5     17I can see it right there at my fingertips using this query, where I want to set b_col_d = a_col_d, but I'm missing something, as this query returns too many rows when used in the update statement.
    select * from (
      select col_a as a_col_a, col_b as a_col_b, col_c as a_col_c, col_d as a_col_d
      from mytable
      where col_b = 1
      ) a, (
      select col_a as b_col_a, col_b as b_col_b, col_c as b_col_c, col_d as b_col_d
      from mytable
      where col_b = 3
      ) b
    where a.a_col_c = b.b_col_cupdate mytable set column_d = (select ??? where exists ???)
    Can someone help me get there? I'm using 10GR2.
    Thanks!
    Mark

    Hopefully this is what you are looking for:
    SQL > UPDATE mytable myt1
      2  SET    col_d = ( SELECT myt2.col_d
      3                   FROM   mytable myt2
      4                   WHERE  myt2.col_b = 1
      5                   AND    myt1.col_c = myt2.col_c
      6                 )
      7  WHERE  col_b = 3
      8  AND    EXISTS
      9         ( SELECT NULL
    10           FROM   mytable myt2
    11           WHERE  myt2.col_c = myt1.col_c
    12         )
    13  ;
    5 rows updated.
    SQL > SELECT * FROM mytable ORDER BY col_a;
                   COL_A                COL_B                COL_C                COL_D
                       1                    1                    1                   15
                       2                    1                    2                    7
                       3                    1                    3                   11
                       4                    1                    4                   23
                       5                    1                    5                   14
                       6                    2                    1                   50
                       7                    2                    2                   41
                       8                    2                    3                   13
                       9                    2                    4                   12
                      10                    2                    5                   19
                      11                    3                    1                   15
                      12                    3                    2                    7
                      13                    3                    3                   11
                      14                    3                    4                   23
                      15                    3                    5                   14
                      16                    4                    1                   54
                      17                    4                    2                   41
                      18                    4                    3                   22
                      19                    4                    4                   24
                      20                    4                    5                   17
    20 rows selected.Thank you so much for providing the sample data in an easy to consume form, as well as the expected output.

  • %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to down

    Hello,
    On a 4402 wireless controller (7.0.220.0) with LAP1242AG-E-K9 and LAP1252AG-E-K9 access points I receive lots of messages like this:
    Dec  9 12:55:16 ap-a1 1466: AP:001a.2f58.d4d6: *Dec  9 11:55:16.174: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to down
    Dec  9 12:55:17 ap-a1 1467: AP:001a.2f58.d4d6: *Dec  9 11:55:16.211: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to up
    what is a little bit annoying, in particular for voice communications.
    Is there a way to get more information from any logs or is there a similar problem discussion anywhere on this forum?
    Thanks.

    Hi Konstantin,
    Unfortunately I do not think we have the radio status codes published, but I'll comment on them here:
    Status 51: Reset on transmit completion. I'm not 100%, but I think this means the radio was supposed to reset (due to another reason) but had data to transmit, so it completed TX and then reset.
    Status 52: Reset on completion of multicast packets. Similar to above, just with multicast traffic being queued up.
    Status 37: Generic interface reset (up/down), often seen during bootup or on configuration changes.
    Status 54: Radio interface was shutdown -- either configured by the user or perhaps part of the boot process.
    Status 67: Reset after changing hostname on the AP. This also would occur on bootup once the config is loaded.
    Status 71: Reset to update radio status on WLC. Also usually done upon AP joining the WLC after bootup.
    -Pat

  • How to update a GUI

    In the code below, how do I update the GUI with the random number that is generated? I cannot use a static method because I may need multiple instances of the GUI and each instance needs to have it's own unique output displayed. I can't combine the two class together because I want to serialize the Controller but NOT the GUI.
    public class Controller{
         public void makeNums(){
              // creates random numbers at random times
    public class Gui{
         private Controller control;
         public Gui(Controller control){
              this.control = control;
              openGui();                  // this method creates all the components of the GUI
              control.makeNums();
    }How can the Controller update the GUI after the random number has been generated?

    SquareBox wrote:
    DrClap wrote:
    It's pretty trivial:Thanks. I will give that a try. Just one final question here. Is it dangerous to use "this" in the Constructor? Thanks so much for the tip. I will give it a try right now.It's generally a bad idea to let the "this" reference escape from the c'tor before the object is fully initialized. You don't want some other class or method to be using your object before it's in a fully valid state. In this case, however, the object in question has already been fully initialized before you leak the reference, so you should be fine.
    Having said that, however, I'm not 100% sure that there's not a potential for memory inconsistency in a multithreaded context. I think in this particular case you're okay, but another approach might be to have an external method create the Gui and then call control.setGui(gui).

  • TS1702 I'm having trouble updating my apps. the message that appears is that the security code of credit card is invalid. already talked to the operator of the card and everything is ok.

    I'm having trouble updating my apps. the message that appears is that the security code of credit card is invalid. already talked to the operator of the card and everything is ok.

    The address on the billing statement from the credit card company must match the information that you have filled in on the fields in iTunes when you set up the account. In other words you cannot abbreviate in iTunes if the information for you billing address is not abbreviated on the statement that you get in the mail. If the statement lists your street as "Street" and you type in "St." - that can cause issues. If that's not the problem, sign out of your ID, restart the iPad and sign in again.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try to update again.

  • I'm having trouble updating my iphone 4 since i updated to 4.3.3 i can't update it anymore. right now when i connect it to my itunes, itunes freezes for about 5 minutes then says something like "could not load sync service" any ideas on what i shud do?

    I'm having trouble updating my iphone 4 since i updated to 4.3.3 i can't update it anymore. initially itunes would let me go so far as downloadin the new software then an error poped up as soon as the download finished, and now when i connect it to my itunes, itunes freezes for about 5 minutes then says something like "could not load sync service, reconnect or try again later" any ideas on what i shud do?

    Did you try to connect in recovery mode? iPhone and iPod touch: Unable to restore

  • HI there, I am having trouble updating my CS5 Master's Collection Suite for at least a month now. I keep gettin this message "There was an error downloading this update. Please quit now and try again later" every time and do not know how to fix it.

    I am having trouble updating my CS5 Master's Collection Suite for at least a month now. I keep getting this message "There was an error downloading this update. Please quit now and try again later" every time and do not know how to fix it.
    Any help will be highly appreciated.
    Thanks a lot in advance.
    Sincerely,
    Uvaldocj@@
    Here is a list of the products I am troubled with:
      Adobe After Effects CS5 10.0.2 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Bridge CS5 4.0.5 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Extension Manager CS5 5.0 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Illustrator CS5 15.0.2 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Pixel Bender Toolkit 2.5 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe® InDesign® CS5 7.0.4 update
    There was an error downloading this update. Please quit and try again later.
      Dreamweaver CS5 11.0.4 Updater
    There was an error downloading this update. Please quit and try again later.
      Fireworks CS5 11.0.2 Update
    There was an error downloading this update. Please quit and try again later.
      Photoshop 12.0.4 update for Photoshop CS5
    There was an error downloading this update. Please quit and try again later.
      Photoshop Camera Raw 6.7 Update
    There was an error downloading this update. Please quit and try again later.

    I'm having the same issue. And Dreamweaver now crashes after just a few seconds.

  • TS4006 Hi I am having trouble updating my apps I have tried one at a time and all together but they just will not load any ideas would be appreciated

    Hi, I am having trouble updating my apps, I have tried one at time and all together but they just keep on whirring away and nothing happens! any ideas woud be appreciated.

    Suggest you update all these apps on iTune (computer) and sync them to your iPad.

  • HT1222 Having trouble updating to  11.1 on my iPhone 5 and I can't download any music from iTunes to my iPhone because it says I don't have 11.1

    Having trouble updating to  11.1 on my iPhone 5 and I can't download any music from iTunes to my iPhone because it says I don't have 11.1? How can I update iTunes on iPhone?

    You update iTunes on your computer to 11.1.

  • Updating a GUI component from a runnable class that doesn't know that GUI

    Hi. I have a problem that I think isn't solvable in an elegant way, but I'd like to get confirmation before I do it the dirty way.
    My application allows the user to save (and load) his work in sessions files. I implemented this by a serializable class "Session" that basically stores all the information that the user created or the settings he made in its member variables.
    Now, I obviously want the session files created by this to be as small as possible and therefore I made sure that no GUI components are stored in this class.
    When the user has made all his settings, he can basically "run" his project, which may last for a long time (minutes, hours or days, depending on what the user wants to do....). Therefore I need to update the GUI with information on the progress/outcome of the running project. This is not just a matter of updating one single GUI component, but of a dynamic number of different internal frames and panels. So I'd need a reference to a GUI component that knows all these subcomponents to run a method that does the update work.
    How do I do that? I cannot pass the reference to that component through the method's argument that "runs" the project, because that needs to be a seperate thread, meaning that the method is just the run() method of that thread which has no arguments (which I cannot modify if I'm not mistaken).
    So the only thing I can think of is passing the reference through the constructor of the runnable class (which in turn must be stored in the session because it contains critical information on the user's work). As a result, all components that need to be incorporated in that updating process would be part of the session and go into the exported file, which is exactly what I wanted to avoid.
    I hope this description makes sense...
    Thanks in advance!

    Thanks for the quick answer! Though to be honest I am not sure how it relates to my question. Which is probably my fault rather than yours :-)
    But sometimes all it takes me to solve my problem is posting it to a forum and reading it through again :)
    Now I wrote a seperate class "Runner" that extends thread and has the gui components as members (passed through its constructor). I create and start() that object in the run method of the original runnable class (which isn't runnable anymore) so I can pass the gui component reference through that run method's argument.
    Not sure if this is elegant, but at least it allows me to avoid saving gui components to the session file :-)
    I am realizing that probably this post shouldn't have gone into the swing forum...

  • I am having trouble updating the operating system on both my ipad and iphone. I get a strange message when I open my PC desk top that says "the procedure entry point sqlit3_wal-checkpoint could not be located in teh dynamic link library SQLite3.dll"

    I am having trouble updating my operatI am having trouble updating the operating system on both my ipad and iphone. I get a strange message when I open my PC desk top that says "the procedure entry point sqlit3_wal-checkpoint could not be located in the dynamic link library SQLite3.dll"  Any ideas what my problem is?

    Hi whatsthe77,
    Welcome to Apple Support Communities.
    You may want to follow the steps in this article to reinstall iTunes:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/HT1923
    Have a great day,
    Jeremy

Maybe you are looking for

  • I subscribed to Creative Cloud, but it's telling me I'm in Tryout mode

    I just subscribed to Creative Cloud. I downloaded a bunch of apps. Tried them all out. All was well. But then I opened After Effects CS6 and it was telling me that I was in a Trial mode. Huh?? I then opened Adobe Illustrator CS6 and it's the same thi

  • Character Styles in the Real World

    Rick: Thanks for your efforts, and let me add my Amen to both subjects (on file locations and on Character styles). My real-world use of Character styles is a combination usage of Paragraph and Character styles for Notes: I have a Paragraph style cal

  • Replicating material from R/3 to SRM problem

    Hi experts I have done all configurations for material replication from R/3 to SRM but an error still occuring When I start the initiao load I can see inSMQ1 of backen 2 entries R3AD_MATERIA* and MASS_SRM_MATERIA* in status STOP, and some materials a

  • How to export iPhoto slideshow to quicktime and then view on video iPod?

    How do you export a slideshow to a Quicktime movie (from iPhoto) so that the resulting Quicktime movie is then viewable on an iPod? I've exported slideshows (with transitions, specified Ken Burns effects, music, etc.) to Quicktime movies to try to vi

  • Where is the OC4J 9i download link

    where is the OC4J 9i download link?