Problem with Equali

Hey
i have an audigy 2 platinum. i use the equalizer program to make my sound better. i notice that it does not function with a lot of games. i dont have a big problem with that, however, when exiting games (main ones i have noticed that cause problems are Battlefield 2 and Star wars jedi knights jedi academy), my equalizer does not come back on.
when i go to turn it back on, i click on the link in the start menu and an error message pops up saying, "The audio device supported by this application is not detected. The application will exit."
sometimes waiting will allow it to come back on, other times i have to reboot.
A format and reload will NOT fix this problem, as i have done that. i also have the latest drivers.
thanks for your time.

This is not a "problem":?This Equalizer is a EAX effect, wich is added to the effect list (like reverb/ chorus and so on)If you start a game, the card is switching into another mode, EAX cannot be selected and used while a game with directsound/eax is running. see yourself: start a game with EAX, press strg/ctrl + tab and go into your Audio console: in EAX effects tab you will see nothing! This is because these effect- slots are reserved to the game wich is running. same goes for CMSS i believe. (dont know anymore, i have a X-Fi meantime)

Similar Messages

  • Problem with Equals/Contains

    Hello,
    I am learning .net c# and i wanted to rewrite Stack collection.
    But when i tried rewriting Contains method, i think i found little bug.
    I cant compare two instances of class.
    I created class Test and i put it into stack, then i made new instance of class Test and i tried do Contains, how i found out it always returns False. Same is with Equals, ReferenceEquals and ==. Why is this happening? Both classes contains same items with
    same things. Why it isnt True?
    Thanks for answer.

    Comparison and equality are one of the things that are done in an strange way in .NET.
    First thing to pay attention is that, there is difference between equality comparison and less than/greater than comparison. On the whole, equality is used in searching and looking up while comparison is used in sorting. Equality comparison is always doable.
    You compare whether two things are equal. But less than/greater than might not necessarily possible in all situations.
    There are also two general ways when comparing two things (whether for equality or less than/greater than):
    Objects themselves perform comparison on each other
    Another object -and external object- performs comparison on them
    In first approach, we call the Equals() method an object, passing it the other object we intend to compare its equality with, and the former object performs equality comparison himself and sees whether it is equal to the given object or not. While Equals()
    method provides us a good point to override comparison, the limitation is that, we can override Equals() only once in a class, while there might be different equality contexts available for comparison.
    For example in a collection of Person objects, one time we might compare equality based on Lastname and another time we might want to do it based on Birthdate. Using Equals() method regretfully gives us an only chance for comparison. Also, it corrupts the
    equality rule of all of our objects. Apparently we don't want to change the equality algorithm of our objects, one of which is equality comparison based on reference that is done intrinsically by object base class. Also, what if we don't access to the source
    code of the class we are using its instances in our application?! Let's not think about such a frightening situation (in that case, inheritance is an ultimate shot, however, not the only shot, as we will see soon). This leads us to the other approach.
    In the second approach we use another object as a judge that performs comparison (whether it be equality or less than/greater than) and proclaims the result. Because the judge object is external and can be any object, we will potentially have numerous
    choices at hand to use for comparison. One time we might use a LastNameEqualityComparer object, another time use a BirthdateEqualityComparer and another time use whatever equality comparer we want. We have total freedom.
    Now, we get to the point where I said there is strange or anomaly behavior in .NET collections regarding comparison.
    Some collections such as Dictionary<TKey, TValue> provides us a way to pass them an equality comparer object in their constructors when we are creating an instance of them.
    public Dictionary(IEqualityComparer<TKey> comparer)
    exmaple: https://msdn.microsoft.com/en-us/library/ms132072(v=vs.110).aspx
    public class Example
    public static void Main()
    // Create a new Dictionary of strings, with string keys
    // and a case-insensitive comparer for the current culture.
    Dictionary<string, string> openWith =
    new Dictionary<string, string>(
    StringComparer.CurrentCultureIgnoreCase);
    // Add some elements to the dictionary.
    openWith.Add("txt", "notepad.exe");
    openWith.Add("bmp", "paint.exe");
    openWith.Add("DIB", "paint.exe");
    openWith.Add("rtf", "wordpad.exe");
    // Try to add a fifth element with a key that is the same
    // except for case; this would be allowed with the default
    // comparer.
    try
    openWith.Add("BMP", "paint.exe");
    catch (ArgumentException)
    Console.WriteLine("\nBMP is already in the dictionary.");
    // List the contents of the sorted dictionary.
    Console.WriteLine();
    foreach( KeyValuePair<string, string> kvp in openWith )
    Console.WriteLine("Key = {0}, Value = {1}", kvp.Key,
    kvp.Value);
    But some collections don't provides us a way in their constructors to pass them a custom comparer. Unfortunately your case, Stack, is among them and Stack doesn't have such a constructor.
    If we read the MSDN documentation of the Contains() method in the non-generic Stack, and generic Stack<T> classes, we get the following sayings that reveals everything:
    non-generic Stack.Contains(): this method determines equality by calling Object.Equals.
    generic Stack<T>.Contains(): this method determines equality using the default equality comparer EqualityComparer<T>.Default for T, the type of values in the list.
    If we use a non-generic Stack class, our only choice is overriding Equals() in the class of our object, as Andy ONeill mentioned before. But if we use non-generic Stack<T>, .NET team generously favored us one other tiny choice. We can implement the
    IEquatable<T> interface in our class that has an Equals() method and implement the algorithm of our new equality comparison in this Equals() method. Why we should do that? Because that is what EqualityComparer<T>.Default does! See MSDN documentation
    again:
    https://msdn.microsoft.com/en-us/library/ms224763(v=vs.110).aspx
    The Default property
    checks whether type T implements
    the System.IEquatable<T> interface
    and, if so, returns an EqualityComparer<T> that
    uses that implementation. Otherwise, it returns an EqualityComparer<T> that
    uses the overrides of Object.Equals and Object.GetHashCode provided
    by T.
    Although this explanation is a little misleading or vague, simply put it says, the Default property returns a comparer object that checks whether the objects being compared have implemented IEquatable<T> interface or not. If so, it uses the implemented
    Equals() of that interface in the objects, otherwise it resorts to the intrinsic Equals() method that is inherited to all objects from the object, father of all, base type.
    This IEqualityComparer<T>.Default object and that IEquatable<T> interface together help not to corrupt the innate Equals() methods of our classes.
    However, as good as what .NET team might have thought by favoring us using an IEqualityComparer<T>.Default in the Contains() method of the non-generic Stack<T> class, their solution is far from what is expected. Because again it stucks us to
    the first problem. We have only one and only one chance to define an equality comparison algorithm in our class. Naturally we can't implement an IEquatable<T> interface multiple times in our class.
    The tiny problem is that, they missed adding a new constructor in Stack<T> class that accepts an IEqualityComparer<T> like what they have done in Dictionary<TKey, TValue>. This is a shame. Because this is not a rare occasion. The same is
    true for some other collections such as Queue<T>, HashSet<T>, LinkedList<T> and List<T>. I don't know whether they have did this intentionally or they simply forgot to do that.
    So what? What should we do if we had multiple equality testing algorithms.
    Fortunatey there is still hope.
    If .NET team working on generic collections were that lazy to forget adding new constructors to generic classes, they did a good job and solved the problem from the root by adding a bunch of extension methods to all IEnumerable, IEnumerable<T> collections
    in System.Linq namspace and freed themselves forever. Look at the following extension methods in System.Linq namespace:
    public static bool Contains<TSource>(
    this IEnumerable<TSource> source,
    TSource value,
    IEqualityComparer<TSource> comparer
    You got the idea? They defined a general Contains() method for any IEnumerable<T> collection that allows us to give it a custom equality comparer object. Hooray! Problem solved. But wait. Why should we be happy? That comparer parameter might still
    use IEquatable<T> and presumes the objects have an Equals() method! Oh my gush! Still returned to the same point and the problem exists. We stuck forever! Don't freak out. Be calm.
    The IEqualityComparer<T> interface is defined this way:
    public interface IEqualityComparer<in T>
    bool Equals(T x, T y);
    int GetHashCode(T obj);
    It says, an equality comparer should have an Equals() method and it is in this very method that the equality comparison algorithm will go. This method receives two objects and compares them together using whatever algorithm the creator of the equality comparer
    class has intended.
    The good point of this IEqualityComparer<T> and that Contains<T>() extension method is that, your objects are not expected to implement an IEquatable<T> as well. This is another good news. Because we are neither forced to override
    Equals() in our class and corrupt it, nor we have to implement IEquatable<T> in them. In fact, our classes remain clean and intact and we even don't have to have their source code.
    So, this was the final cure for the malignant issue of equality comparison. The same story is true for less than/greater than comparison.
    In conclusion, what I recommend is that, never override the intrinsic Equals() method, inherited from Object, in your classes. Instead use the extension methods that has a comparer parameter in their signature and receive a comparer object (like Contains<T>()).
    I don't want to again raise a depression air here. But you should know that. You have the right. All extension methods does not have an overload that has a comparer parameter. But don't worry. You can yourself write the required extension method you need and
    complete the probably incomplete work in .NET.
    Good luck

  • Viewing HTML e-mail and problems with  = (equal sign)

    Good day,
    I am having problems with apple mail rendinering html e-mail messages. There are extra = in the message body. The = appears to be line continuation character in the HTML. I have no problems viewing the message in Thunderbird or Entorage, but Mac Mail is a problem. The = appears to be displayed as a literal rather than part of the html reconstruction. Any thoughts as how to resolve this issue?
    Here is the source of the message.
    Received: from [67.17.248.27] by vms047.mailsrvcs.net
    (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006))
    with ESMTP id <[email protected]> for
    [email protected]; Thu, 18 Oct 2007 20:48:18 -0500 (CDT)
    Received: from rhlxprd2.somecompany.com by [67.17.248.27] via smtpd
    (for relay.someisp.net [206.46.232.11]) with ESMTP; Thu,
    18 Oct 2007 21:48:17 -0400
    Received: from rhlxprd2.somecompany.com (unknown [127.0.0.1])
    by rhlxprd2.somecompany.com (Symantec Mail Security)
    with ESMTP id 4EF591901B4; Thu, 18 Oct 2007 21:48:16 -0400 (EDT)
    Received: from INEXCCL1.somecompany.com
    (inexcbe2.somecompany.com [192.168.23.36]) by rhlxprd2.somecompany.com
    (Symantec Mail Security) with ESMTP id 0B4D29C07B; Thu,
    18 Oct 2007 21:36:03 -0400 (EDT)
    Date: Thu, 18 Oct 2007 21:36:54 -0400
    From: "Pfister, Scott" <[email protected]>
    Subject: western-eroup-iso-html-nocr
    X-Originating-IP: [67.17.248.27]
    To: <[email protected]>, "Some Guy" <[email protected]>
    Message-id: <[email protected]>
    MIME-version: 1.0
    X-MIMEOLE: Produced By Microsoft Exchange V6.5
    Content-type: multipart/alternative;
    boundary="----=_NextPart_00101C811F0.87CDD9C6"
    Content-class: urn:content-classes:message
    Importance: high
    Priority: Urgent
    X-Priority: 1
    Thread-topic: western-eroup-iso-html-nocr
    Thread-index: AcgR7b/obZRXrjryTPWlwmsfeV7IJw==
    X-AuditID: c0a8195c-b0552bb000005d6c-ca-47180a036da8
    X-MS-Has-Attach:
    X-MS-TNEF-Correlator:
    X-Brightmail-Tracker: AAAAAA==
    This is a multi-part message in MIME format.
    ------=_NextPart_00101C811F0.87CDD9C6
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    this is a test
    ;alskdjf;lkajdsf;lkjsaf
    ;alsjf;lsajf;lkdsaf
    ;lasjf;lakjfds;lksaf;lkasfdj;lkasd;lkfa;lkdsf
    ;lakjfds;lsajf;lksaf;lksasdfasdf;lkjafds
    This email and any files transmitted with it are confidential and intended s=
    olely for the use of the individual or entity to whom they are addressed. If=
    you have received this email in error please notify the system manager. Ple=
    ase note that any views or opinions presented in this email are solely those=
    of the author and do not necessarily represent those of the company. Finall=
    y, the recipient should check this email and any attachments for the presenc=
    e of viruses. The company accepts no liability for any damage caused by any=
    virus transmitted by this email.
    ------=_NextPart_00101C811F0.87CDD9C6
    Content-Type: text/html;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    <html>
    <head>
    <meta http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1">
    <meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">
    <style>
    <!--
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin:0in;
    margin-bottom:.0001pt;
    font-size:12.0pt;
    font-family:"Times New Roman";}
    a:link, span.MsoHyperlink
    {color:blue;
    text-decoration:underline;}
    a:visited, span.MsoHyperlinkFollowed
    {color:purple;
    text-decoration:underline;}
    span.emailstyle17
    {font-family:Arial;
    color:windowtext;}
    span.EmailStyle19
    {font-family:Arial;}
    @page Section1
    {size:8.5in 11.0in;
    margin:1.0in 1.25in 1.0in 1.25in;}
    div.Section1
    {page:Section1;}
    -->
    </style>
    </head>
    <body lang=3DEN-US link=3Dblue vlink=3Dpurple>
    this is a test
    ;alskdjf;lkajdsf;lkjsaf
    ;alsjf;lsajf;lkdsaf
    <spa=
    n
    style=3D'font-size:24.0pt;font-family:Arial;color:red'>;lasjf;lakjfds;lksaf;=
    lkasfdj;lkasd;lkfa;lkdsf
    <spa=
    n
    style=3D'font-size:24.0pt;font-family:Arial;color:red'>;lakjfds;lsajf;lksaf;=
    lksasdfasdf;lkjafds
    This email and any files transmitted with it are confidential and intende=
    d solely for the use of the individual or entity to whom they are addressed.=
    If you have received this email in error please notify the system manager.=
    Please note that any views or opinions presented in this email are solely t=
    hose of the author and do not necessarily represent those of the company. Fi=
    nally, the recipient should check this email and any attachments for the pre=
    sence of viruses. The company accepts no liability for any damage caused by=
    any virus transmitted by this email.</body>
    </html>
    ------=_NextPart_00101C811F0.87CDD9C6--

    rembsen wrote:
    - Sender has got Outlook (at least 2003)
    - Mail service is Exchange (at least 2003)
    Looks like there is a common theme there. It is probably just that the original message has been corrupted somehow. Some mail clients try harder to understand corrupted data than others. I can't really tell from your original post. With mail messages, you really need to have the original data, not copied and pasted and not forwarded. If you have such a mail message, save it as raw source, put it into a zip file, and e-mail it to me. I can tell if it is an Apple Mail problem or a MS problem. If it is an Apple problem, I can file a detailed bug report on it. You can find an e-mail address for me by Googling my nickname.

  • Problem with logic:equal

    hi!
    i have a problem with my code.
    <logic:iterate id="_contilist" name="contilist">
    <logic:iterate id="_continentall" name="continental">
    <logic:equal name="_continentall" property="val(GCCSL_SL_ID)" value="_contilist.val(SL_ID)">
    <tr class="list">TEXT</tr>
    </logic:equal>
    </logic:iterate>
    </logic:iterate>
    TEXT is nerver displayed!
    both beans contilist and continental are filled and GCCSL_SL_ID and SL_ID are equal.
    is the code correct or is it not allowable that I use contilist.val(SLID) in this equal?
    whit greetings

    <logic:equal name="_continentall" property="val(GCCSL_SL_ID)" value="_contilist.val(SL_ID)">
    Two things here
    1 - you can't use parentheses in the property/value tags to indirectly pass a parameter to a method. The property is a String being the property exposed by the bean. So property="name" or property="id" are valid, but property="val(name)" Is not as far as I am aware.
    2 - value is currently a String. If you want it to be actually evaluated, try value="<%= _contilist.val(SL_ID) %>"
    To me though, this sort of filtering logic should be done in the action. Your JSP should just receive one list to print out.

  • Problem with logic:equal tag when used with bean:write

    Hi All,
    I have a problem with logic:equal.When i tried to use the following piece of code its not working
    <logic:equal name="var in session" value="<bean:write name='var in request'/>">
    Do some thing
    </logic:equal>
    its not working i know we cant use nested tags
    is thr any alternative instead of using a scriplet

    A scriptlet expression is about all you can do.
    <bean:define id="tempVar" name="var in request"/>
    <logic:equal name="var in session" value="<%= tempVar %>">
    ...If you have a JSP2.0 container with EL enabled, then you could use an EL expression instead of the standard <%= expr %>

  • Problem with Not equal to: anything connected to BASIS??

    Dear all,
    I have a problem when I use '<>' or '><' or 'NE' to write dependencies. The function modules CUKD_XREF_OBJ_CHARC_SVAL and CUKD_GET_XREF dont work correctly. Is there any problem with in the SAP . Do I need to apply some Patch? Anything connected to Basis. Please help.
    Thanks&Regards,
    Manjula.S
    Edited by: Manjula on Dec 3, 2008 11:45 AM

    Hi ,
    Please see the code below.  I have created a structure  ZCHAR_TAB with 2 fields ATNAM and ATWRT.
    I have a class TEST_CLASS and characteristics TEST1 with values SIMPLEX , DUPLEX and second characteristic TEST2 with values GREEN, BLUE,ORANGE, BROWN. Lets say  Write 1 dependency for
    Orange and include 'NE'. The object dependency number from CUKD_XREF_OBJ_CHARC_SVAL are not coming correclty.
    FUNCTION ZCHARACTERISTIC_VALUES.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(ATNAM_IN) TYPE  ATNAM
    *"     REFERENCE(ATWRT_IN) TYPE  ATWRT
    *"     REFERENCE(ATNAM_OUT) TYPE  ATNAM
    *"  TABLES
    *"      ZCHAR_TAB STRUCTURE  ZCHAR_TAB
      DATA : GT_CABN   TYPE STANDARD TABLE OF CABN   WITH HEADER LINE,
             GT_CAWN   TYPE STANDARD TABLE OF CAWN   WITH HEADER LINE,
             GT_CUOB   TYPE STANDARD TABLE OF CUOB   WITH HEADER LINE,
             GT_CUKB   TYPE STANDARD TABLE OF CUKB   WITH HEADER LINE,
             GT_CUXREF TYPE STANDARD TABLE OF CUXREF WITH HEADER LINE,
             GV_ATINN  LIKE CABN-ATINN,
             GV_ATWRT  LIKE CAWN-ATWRT.
      GV_ATWRT = ATWRT_IN.
    Selecting data from the CABN table for the internal characteristic numbers
      SELECT *
             FROM CABN
             INTO TABLE GT_CABN
             WHERE ATNAM IN (ATNAM_IN,ATNAM_OUT).
      IF SY-SUBRC EQ 0.
    Reading data from GT_CABN internal table to get the internal number of the
    Output characteristic
        CLEAR GT_CABN.
        READ TABLE GT_CABN WITH KEY ATNAM = ATNAM_OUT.
        IF SY-SUBRC EQ 0.
          GV_ATINN = GT_CABN-ATINN.
        ENDIF.
    Selecting Values of the Output characteristic from the CAWN table
        SELECT *
               FROM CAWN
               INTO TABLE GT_CAWN
               WHERE ATINN = GV_ATINN.
        IF SY-SUBRC EQ 0.
          IF NOT GT_CAWN[] IS INITIAL.
    Selecting the Dependency assignment numbers from the CUOB table
            SELECT * FROM CUOB
                     INTO TABLE GT_CUOB
                     FOR ALL ENTRIES IN GT_CAWN
                     WHERE KNOBJ = GT_CAWN-KNOBJ
                     AND   LKENZ = ''.
          ENDIF.
        ENDIF.
      ENDIF.
      LOOP AT GT_CABN WHERE ATNAM = ATNAM_IN.
    Retrieving all the Dependencies based on the Input Characteristic
    into GT_CUKB internal table
      CLEAR : GT_CAWN.
      READ TABLE GT_CAWN WITH KEY ATINN = GT_CABN-ATINN.
        CALL FUNCTION 'CUKD_XREF_OBJ_CHARC_SVAL'
          EXPORTING
            FROM_DATE    = SY-DATUM
            OBJTYPE      = ' '
            OBJKEY       = ' '
            ATINN        = GT_CABN-ATINN
            TO_DATE      = SY-DATUM
          TABLES
            DEPENDENCIES = GT_CUKB
          EXCEPTIONS
            NO_DEP_FOUND = 1
            OTHERS       = 2.
      ENDLOOP.
      LOOP AT GT_CUKB.
        CLEAR GT_CUOB.
        READ TABLE GT_CUOB WITH KEY KNNUM = GT_CUKB-KNNUM.
        IF SY-SUBRC EQ 0.
          CLEAR  GT_CUXREF. REFRESH  GT_CUXREF.
          CALL FUNCTION 'CUKD_GET_XREF'
            EXPORTING
              KNNUM        = GT_CUOB-KNNUM
              DATE         = SY-DATUM
            TABLES
              XREF_TAB     = GT_CUXREF
            EXCEPTIONS
              NO_REC_FOUND = 1
              OTHERS       = 2.
          LOOP AT GT_CUXREF WHERE ATWRT = ATWRT_IN.
            CLEAR : GT_CAWN.
            READ TABLE GT_CAWN WITH KEY KNOBJ = GT_CUOB-KNOBJ.
            IF SY-SUBRC EQ 0.
              CLEAR : GT_CABN.
              READ TABLE GT_CABN WITH KEY ATINN = GT_CAWN-ATINN.
              ZCHAR_TAB-ATNAM = GT_CABN-ATNAM.
              ZCHAR_TAB-ATWRT = GT_CAWN-ATWRT.
              APPEND ZCHAR_TAB. CLEAR ZCHAR_TAB.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
    ENDFUNCTION.

  • Problem with threads running javaw

    Hi,
    Having a problem with multi thread programming using client server sockets. The program works find when starting the the application in a console using java muti.java , but when using javaw multi.java the program doesnt die and have to kill it in the task manager. The program doesnt display any of my gui error messages either when the server disconnect the client. all works find in a console. any advice on this as I havent been able to understand why this is happening? any comment would be appreciated.
    troy.

    troy,
    Try and post a minimum code sample of your app which
    does not work.
    When using javaw, make sure you redirect the standard
    error and standard output streams to file.
    Graeme.Hi Graeme,
    I dont understand what you mean by redirection to file? some of my code below.
    The code works fine under a console, code is supposed to exit when the client (the other server )disconnects. the problem is that but the clientworker side of the code still works. which under console it doesnt.
    public class Server{
    ServerSocket aServerSocket;
    Socket dianosticsSocket;
    Socket nPortExpress;
    ClientListener aClientListener;
    LinkedList queue = new LinkedList();
    int port = 0;
    int clientPort = 0;
    String clientName = null;
    boolean serverAlive = true;
    * Server constructor generates a server
    * Socket and then starts a client threads.
    * @param aPort      socket port of local machine.
    public Server(int aPort, String aClientName, int aClientPort){
    port = aPort;
    clientName = aClientName;
    clientPort = aClientPort;
    try{
    // create a new thread
    aServerSocket = new ServerSocket(port) ;
    // connect to the nPortExpress
    aClientListener = new ClientListener(InetAddress.getByName(clientName), clientPort, queue,this);
    // aClientListener.setDaemon(true);
    aClientListener.start();
    // start a dianostic port
    DiagnosticsServer aDiagnosticsServer = new DiagnosticsServer(port,queue,aClientListener);
    // System.out.println("Server is running on port " + port + "...");
    // System.out.println("Connect to nPort");
    catch(Exception e)
    // System.out.println("ERROR: Server port " + port + " not available");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Server port " + port + " not available", JOptionPane.ERROR_MESSAGE);
    serverAlive = false;
    System.exit(1);
    while(serverAlive&&aClientListener.hostSocket.isConnected()){
    try{
    // connect the client
    Socket aClient = aServerSocket.accept();
    //System.out.println("open client connection");
    //System.out.println("client local: "+ aClient.getLocalAddress().toString());
    // System.out.println("client localport: "+ aClient.getLocalPort());
    // System.out.println("client : "+ aClient.getInetAddress().toString());
    // System.out.println("client port: "+ aClient.getLocalPort());
    // make a new client thread
    ClientWorker clientThread = new ClientWorker(aClient, queue, aClientListener, false);
    // start thread
    clientThread.start();
    catch(Exception e)
    //System.out.println("ERROR: Client connection failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client connection failure", JOptionPane.ERROR_MESSAGE);
    }// end while
    } // end constructor Server
    void serverExit(){
         JOptionPane.showMessageDialog(null, "Server ","ERROR: nPort Failure", JOptionPane.ERROR_MESSAGE);
         System.exit(1);
    }// end class Server
    *** connect to another server
    public class ClientListener extends Thread{
    InetAddress hostName;
    int hostPort;
    Socket hostSocket;
    BufferedReader in;
    PrintWriter out;
    boolean loggedIn;
    LinkedList queue;      // reference to Server queue
    Server serverRef; // reference to main server
    * ClientListener connects to the host server.
    * @param aHostName is the name of the host eg server name or IP address.
    * @param aHostPort is a port number of the host.
    * @param aLoginName is the users login name.
    public ClientListener(InetAddress aHostName, int aHostPort,LinkedList aQueue,Server aServer)      // reference to Server queue)
    hostName = aHostName;
    hostPort = aHostPort;
    queue = aQueue;
    serverRef = aServer;      
    // connect to the server
    try{
    hostSocket = new Socket(hostName, hostPort);
    catch(IOException e){
    //System.out.println("ERROR: Connection Host Failed");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort Failed", JOptionPane.ERROR_MESSAGE);     
    System.exit(0);
    } // end constructor ClientListener
    ** multi client connection server
    ClientWorker(Socket aSocket,LinkedList aQueue, ClientListener aClientListener, boolean diagnostics){
    queue = aQueue;
    addToQueue(this);
    client = aSocket;
    clientRef = aClientListener;
    aDiagnostic = diagnostics;
    } // end constructor ClientWorker
    * run method is the main loop of the server program
    * in change of handle new client connection as well
    * as handle all messages and errors.
    public void run(){
    boolean alive = true;
    String aSubString = "";
    in = null;
    out = null;
    loginName = "";
    loggedIn = false;
    while (alive && client.isConnected()&& clientRef.hostSocket.isConnected()){
    try{
    in = new BufferedReader(new InputStreamReader(client.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(client.getOutputStream()));
    if(aDiagnostic){
    out.println("WELCOME to diagnostics");
    broadCastDia("Connect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    out.println("WELCOME to Troy's Server");
    broadCastDia("Connect : client "+client.getInetAddress().toString());
         out.flush();
    String line;
    while(((line = in.readLine())!= null)){
    StringTokenizer aStringToken = new StringTokenizer(line, " ");
    if(!aDiagnostic){
    broadCastDia(line);
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    else{
    if(line.equals("GETIPS"))
    getIPs();
    else{
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    } // end while
    catch(Exception e){
    // System.out.println("ERROR:Client Connection reset");
                             JOptionPane.showMessageDialog(null, (e.toString()),"ERROR:Client Connection reset", JOptionPane.ERROR_MESSAGE);     
    try{
    if(aDiagnostic){
    broadCastDia("Disconnect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    broadCastDia("Disconnect : client "+client.getInetAddress().toString());
         out.flush();
    // close the buffers and connection;
    in.close();
    out.close();
    client.close();
    // System.out.println("out");
    // remove from list
    removeThreadQueue(this);
    alive = false;
    catch(Exception e){
    // System.out.println("ERROR: Client Connection reset failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client Connection reset failure", JOptionPane.ERROR_MESSAGE);     
    }// end while
    } // end method run
    * method run - Generates io stream for communicating with the server and
    * starts the client gui. Run also parses the input commands from the server.
    public void run(){
    boolean alive = true;
    try{
    // begin to life the gui
    // aGuiClient = new ClientGui(hostName.getHostName(), hostPort, loginName, this);
    // aGuiClient.show();
    in = new BufferedReader(new InputStreamReader(hostSocket.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(hostSocket.getOutputStream()));
    while (alive && hostSocket.isConnected()){
    String line;
    while(((line = in.readLine())!= null)){
    System.out.println(line);
    broadCast(line);
    } // end while
    } // end while
    catch(Exception e){
    //     System.out.println("ERRORa Connection to host reset");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort reset", JOptionPane.ERROR_MESSAGE);
    try{
    hostSocket.close();
         }catch(Exception a){
         JOptionPane.showMessageDialog(null, (a.toString()),"ERROR: Exception", JOptionPane.ERROR_MESSAGE);
    alive = false;
    System.exit(1);
    } // end method run

  • Problem with JFrame and busy/wait Cursor

    Hi -- I'm trying to set a JFrame's cursor to be the busy cursor,
    for the duration of some operation (usually just a few seconds).
    I can get it to work in some situations, but not others.
    Timing does seem to be an issue.
    There are thousands of posts on the BugParade, but
    in general Sun indicates this is not a bug. I just need
    a work-around.
    I've written a test program below to demonstrate the problem.
    I have the problem on Solaris, running with both J2SE 1.3 and 1.4.
    I have not tested on Windows yet.
    When you run the following code, three JFrames will be opened,
    each with the same 5 buttons. The first "F1" listens to its own
    buttons, and works fine. The other two (F2 and F3) listen
    to each other's buttons.
    The "BUSY" button simply sets the cursor on its listener
    to the busy cursor. The "DONE" button sets it to the
    default cursor. These work fine.
    The "SLEEP" button sets the cursor, sleeps for 3 seconds,
    and sets it back. This does not work.
    The "INVOKE LATER" button does the same thing,
    except is uses invokeLater to sleep and set the
    cursor back. This also does not work.
    The "DELAY" button sleeps for 3 seconds (giving you
    time to move the mouse into the other (listerner's)
    window, and then it behaves just like the "SLEEP"
    button. This works.
    Any ideas would be appreciated, thanks.
    -J
    import java.awt.BorderLayout;
    import java.awt.Cursor;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    public class BusyFrameTest implements ActionListener
    private static Cursor busy = Cursor.getPredefinedCursor (Cursor.WAIT_CURSOR);
    private static Cursor done = Cursor.getDefaultCursor();
    JFrame frame;
    JButton[] buttons;
    public BusyFrameTest (String title)
    frame = new JFrame (title);
    buttons = new JButton[5];
    buttons[0] = new JButton ("BUSY");
    buttons[1] = new JButton ("DONE");
    buttons[2] = new JButton ("SLEEP");
    buttons[3] = new JButton ("INVOKE LATER");
    buttons[4] = new JButton ("DELAY");
    JPanel buttonPanel = new JPanel();
    for (int i = 0; i < buttons.length; i++)
    buttonPanel.add (buttons);
    frame.getContentPane().add (buttonPanel);
    frame.pack();
    frame.setVisible (true);
    public void addListeners (ActionListener listener)
    for (int i = 0; i < buttons.length; i++)
    buttons[i].addActionListener (listener);
    public void actionPerformed (ActionEvent e)
    System.out.print (frame.getTitle() + ": " + e.getActionCommand());
    if (e.getActionCommand().equals ("BUSY"))
    frame.setCursor (busy);
    else if (e.getActionCommand().equals ("DONE"))
    frame.setCursor (done);
    else if (e.getActionCommand().equals ("SLEEP"))
    frame.setCursor (busy);
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.print (" finished");
    else if (e.getActionCommand().equals ("INVOKE LATER"))
    frame.setCursor (busy);
    SwingUtilities.invokeLater (thread);
    else if (e.getActionCommand().equals ("DELAY"))
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (busy);
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.print (" finished");
    System.out.println();
    Runnable thread = new Runnable()
    public void run()
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.println (" finished");
    public static void main (String[] args)
    BusyFrameTest f1 = new BusyFrameTest ("F1");
    f1.addListeners (f1);
    BusyFrameTest f2 = new BusyFrameTest ("F2");
    BusyFrameTest f3 = new BusyFrameTest ("F3");
    f2.addListeners (f3); // 2 listens to 3
    f3.addListeners (f2); // 3 listens to 2

    I've had the same problems with cursors and repaints in a swing application, and I was thinking of if I could use invokeLater, but I never got that far with it.
    I still believe you would need a thread for the time consuming task, and that invokeLater is something you only need to use in a thread different from the event thread.

  • Can some one help me with this problem with my frame???

    i have gt a veri strange problem with my program,that is teh graphic changes only when i resize the the frame,if i dun resize,it will remain the same.However what i intended is that when i click on the radio button,it will change immediately to the respective pages.A simple version of my code is below,can someone helpl me solve it??(there is 3 different class)
    import java.awt.event.*;
    import javax.swing.*;
    public class MainPg extends JFrame implements ActionListener{
         private javax.swing.JPanel jContentPane = null;
         private javax.swing.JPanel buttons = null;
         private javax.swing.JRadioButton one = null;
         private javax.swing.JRadioButton two = null;
         private javax.swing.JPanel change = null;
         public MainPg() {
              super();
              initialize();
         private void initialize() {
              this.setSize(300, 200);
              this.setContentPane(getJContentPane());
              this.setName("mainClass");
              this.setVisible(true);
         private javax.swing.JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new javax.swing.JPanel();
                   jContentPane.setLayout(new java.awt.BorderLayout());
                   jContentPane.add(getButtons(), java.awt.BorderLayout.WEST);
                   jContentPane.add(getChange(), java.awt.BorderLayout.CENTER);
              return jContentPane;
         private javax.swing.JPanel getButtons() {
              if(buttons == null) {
                   buttons = new javax.swing.JPanel();
                   java.awt.GridLayout layGridLayout1 = new java.awt.GridLayout();
                   layGridLayout1.setRows(2);
                   layGridLayout1.setColumns(1);
                   ButtonGroup group=new ButtonGroup();
                   group.add(getOne());
                   group.add(getTwo());
                   buttons.setLayout(layGridLayout1);
                   buttons.add(getOne(), null);
                   buttons.add(getTwo(), null);
              return buttons;
         private javax.swing.JRadioButton getOne() {
              if(one == null) {
                   one = new javax.swing.JRadioButton();
                   one.setText("One");
                   one.setSelected(true);
                   one.addActionListener(this);
                   one.setActionCommand("one");
              return one;
         private javax.swing.JRadioButton getTwo() {
              if(two == null) {
                   two = new javax.swing.JRadioButton();
                   two.setText("Two");
                   two.addActionListener(this);
                   two.setActionCommand("two");
              return two;
         private javax.swing.JPanel getChange() {
              if(change == null) {
                   change = new javax.swing.JPanel();
              change.add(new One());
              return change;
         public static void main(String[] args){
              new MainPg();
         public void actionPerformed(ActionEvent e) {
              change.removeAll();
              if("one".equals(e.getActionCommand())){
                   change.add(new One());
              else{
                   change.add(new Two());
              change.repaint();
    import javax.swing.*;
    public class One extends JPanel {
         private javax.swing.JPanel jPanel = null;
         private javax.swing.JLabel jLabel = null;
         private javax.swing.JPanel jPanel1 = null;
         private javax.swing.JLabel jLabel1 = null;
         private javax.swing.JLabel jLabel2 = null;
         public One() {
              super();
              initialize();
         * This method initializes this
         * @return void
         private void initialize() {
              this.setLayout(new java.awt.BorderLayout());
              this.add(getJPanel(), java.awt.BorderLayout.NORTH);
              this.add(getJPanel1(), java.awt.BorderLayout.WEST);
              this.setSize(300, 200);
         * This method initializes jPanel
         * @return javax.swing.JPanel
         private javax.swing.JPanel getJPanel() {
              if(jPanel == null) {
                   jPanel = new javax.swing.JPanel();
                   jPanel.add(getJLabel(), null);
              return jPanel;
         * This method initializes jLabel
         * @return javax.swing.JLabel
         private javax.swing.JLabel getJLabel() {
              if(jLabel == null) {
                   jLabel = new javax.swing.JLabel();
                   jLabel.setText("one");
              return jLabel;
         * This method initializes jPanel1
         * @return javax.swing.JPanel
         private javax.swing.JPanel getJPanel1() {
              if(jPanel1 == null) {
                   jPanel1 = new javax.swing.JPanel();
                   java.awt.GridLayout layGridLayout2 = new java.awt.GridLayout();
                   layGridLayout2.setRows(2);
                   layGridLayout2.setColumns(1);
                   jPanel1.setLayout(layGridLayout2);
                   jPanel1.add(getJLabel2(), null);
                   jPanel1.add(getJLabel1(), null);
              return jPanel1;
         * This method initializes jLabel1
         * @return javax.swing.JLabel
         private javax.swing.JLabel getJLabel1() {
              if(jLabel1 == null) {
                   jLabel1 = new javax.swing.JLabel();
                   jLabel1.setText("one");
              return jLabel1;
         * This method initializes jLabel2
         * @return javax.swing.JLabel
         private javax.swing.JLabel getJLabel2() {
              if(jLabel2 == null) {
                   jLabel2 = new javax.swing.JLabel();
                   jLabel2.setText("one");
              return jLabel2;
    import javax.swing.*;
    public class Two extends JPanel {
         private javax.swing.JLabel jLabel = null;
         public Two() {
              super();
              initialize();
         * This method initializes this
         * @return void
         private void initialize() {
              this.setLayout(new java.awt.FlowLayout());
              this.add(getJLabel(), null);
              this.setSize(300, 200);
         * This method initializes jLabel
         * @return javax.swing.JLabel
         private javax.swing.JLabel getJLabel() {
              if(jLabel == null) {
                   jLabel = new javax.swing.JLabel();
                   jLabel.setText("two");
              return jLabel;
    }

    //change.repaint();
    change.revalidate();

  • Problems with display of preview - and Adobe's tech support.

    Hello, all.
    After quite a bit of struggle I am still experiencing problems with the way Bridge CS5 displays previews. Previews are displayed with rather low quality. By that I mean low resolution that causes images to appear pixelated and out of focus. I've tried every possible setting in Bridge (or at least I think I have) but nothing seems to work. The setting that forces Previews to be built to the specific monitor size of the computer used doesn't work for me as I spend equal amounts of time working between my Macbook Pro 17" and my Apple 30" cinema display that have different resolutions. I've tried this setting and the preview images created on the notebook would not display at all on the 30" display.
    I have contacted support only to find it is nearly non-existent. A voice obviously from someone located in India answered and kept asking what I considered to be basic questions and must have used the word "apologize" at least 20 to 30 times (no exageration) during the 1 hour and 43 minutes we were on the phone to accomplish nothing other than to "register" my complaint.
    What is happening to Adobe ? This is not a joke, a rumor or an angry comment but rather a serious question from a user who has built a professional workflow based on the use of Adobe's products. I have been an user of the Adobe Creative Suite since its very first version and of the individual applications even before then. Bridge is one of the applications I use the most in my workflow that involves the organization of my large database of medical images I keep from my treatments and research. So this is very serious to me. I am now on the phone with Adobe waiting again to speak with someone in technical support. I was told the average waiting time would take between 35 and 50 minutes and I didn't think it would be possible but so far I have been on hold waiting for 1 hour and 7 minutes and someone has yet to answer the phone. What is happening with Adobe ? Is the company about to go out of business ? The last time I remember experiencing such a lack of support from a company I did so when contacting Polaroid and we all know what happened to it.
    To make matters worse I have twice contacted Adobe and asked their technical support agent to remove a phone number that they seem to have mistakenly written as a contact number in my files. More than one month after I registered my support request I finally received an e-mail stating that had tried to contact me at the phone that isn't mine and shouldn't be a part of my records despite the fact I have instructed them twice to remove. There are serious legal implications here as I am bound to confidentiality when it comes to the medical information I manage with my Adobe applications and the idea that someone in technical support may accidentally share this information with a stranger while calling the wrong number is a serious problem.
    What is going on ?
    Outside of this forum I have no idea who to contact and if it is even worthwhile doing so as it may prove to be a huge waste of time.
    Bridge has been a problem application since its inception. In fact the only version of Bridge that seemed to have worked (somewhat) right out of the box was the first one. I have experienced problems with Bridge with every single new version. Previews that don't display properly, crashes, folder hierarchy indicators not displaying properly, and others. The same images display fine if I open them in Apple's OS X Preview or Photoshop CS5. The problem is restricted to Bridge. All images are RAW high-quality images from a professional Canon EOS 1Ds MK II camera with a 17 megapixel full size sensor, and they always look stunning on everything else.
    What is one to do ???
    Sorry about the long post but I am one frustrated user who doesn't know what else to do.
    Thanks,
    Joe

    Hi again, Steve.
    In answer to your questions:
    > What view are you using for the Slideshow (centered, fit screen, fill screen, 100%)?
    Centered.
    > What is the slide duration set to in Slide Show Options, does changing it to manual help?
    I have it always set to manual.
    > What are you're Preferences> Advanced> settings for 'Software Rendering' and 'Monitor Previews' (checked or unchecked)?
    I've tried both choices for both options. My usual default options are 'Software Rendering' unchecked as I have a new Macbook Pro (only a few months old) and the graphics card is powerful enough to handle the previews and 'Monitor Previews'  also unchecked.
    > What are you're Preferences> Cache settings for Options (Keep 100%..., Automatically Export...)?
    ' Keep 100% Previews in Cache ' option - checked
    ' Automatically Export Cache to Folders When Possible ' option - unchecked
    > What resolutions do you have set for both the 17" MBP and 30" ACD?
    Their native resolutions: 1920 x 1200 for the MBP 17" built-in display and 2560 x 1600 for the 30" cinema display.
    > In the Mac System Prefs.> Energy Saver... do you have the Automatic graphics switching checked off ?
    No. I have this option checked for both Battery and Power Adapter.
    On Bridge's interface upper right hand corner I have also selected using one of its pull down menus the following options:
    ' Always High Quality ' and ' Generate 100% Previews '
    Any ideas ???
    Thanks,
    Joe

  • Problem with MSI X58 Platinum SLI - IOH temperature !

    Hi guys.
    I have this PC configuration:
    - MSI X58 Platinum SLI ( Bios Version 3.8 - http://img822.imageshack.us/img822/6707/161020101249.jpg )
    - Intel Core i7 930 2.80 GHz box ( with Intel Turbo Boost running sometimes at 3.06 Ghz )
    - MSI GeForce GT240 1GB DDR5 128-bit HDMI
    - Corsair 6GB DDR3 1333MHz CL9 XMS3 Triple Channel Kit ( sets to AUTO and running at 1066 Mhz )
    - Corsair CMPSU-750TXEU
    - Ordinary case ( http://img828.imageshack.us/img828/4200/161020101246.jpg & http://img29.imageshack.us/img29/8480/161020101247.jpg ).
    - Windows 7 Ultimate 64 bit.
    I bought my PC components 2 months ago, so they are new.
    Now, guys I think that is a problem with my motherboard. When I turn on the computer in Bios I have this temps: CPU – 30 C (86 F); IOH – 71 C (159 F); System 30 C (86 F) - http://img687.imageshack.us/img687/394/161020101242.jpg. After 2 minutes the temperatures are: CPU – 34 C (93 F); IOH – 82 C (179 F); System 41 C (105 F) and 2 more minutes later the temperatures are: CPU – 34 C (93 F); IOH – 84 C (183 F); System 43 C (109 F). After 30 minutes of doing nothing I have this temps: CPU – 35 C (95 F); IOH – 85 C (185 F); System 42 C (107 F) -
    Guys it is normal with IOH temperature ? I am a little worried about it ( to be honest I am more than “a little” … I am worried a lot ).
    Ok, I know I don’t have a good case but in 3 weeks I should receive this Thermaltake Spedo Advance Case (http://www.thermaltakeusa.com/Product.aspx?C=1121&ID=1829) and I will buy a new CPU cooler ( I don’t know yet wich one – maybe Corsair CWCH70 or Noctua NH-D14 but I have to see the case first … to be sure there is a plenty of space for those coolers ).
    Pls help me with that IOH temperature. It is normal ? What if I intend to make a little OC ( lets say CPU to 3652 Mhz and RAM to 1333 Mhz … but also I will ask for your support ! ) my motherboard will burn ?
    If it is necessary I will contact my retailer and send him back the motherboard but … I like MSI a lot.
    Thx guys for your support !

    Hey guys,  
    Here is a nice cheap alternative.
    Here is my story about the same issue.  I found it after looking at why my computer freezes sometimes. Not very often but enough for me to do some investigation.   I noticed my IOH temp was a whopping 117 degrees Celsius. lol.  Surprised my mobo didn't burn out by now.  I wanted to evaluate the situation with the heat sink and decided to take it off.  After taking it off I found extremely crusty purple compound on board the chipset and the heatsink.  I took me FOREVER to scrape it off. it was almost like a cement which I found odd.  After scraping and cleaning the surfaces with alcohol, I placed some silver compound on and proceeded to put it back on.  
    Well, upon hooking everything back up I was still at 95 to 103 degs.   Now I started to really look at the options to replace this.  I had SLI config which means I had to do something clever with the southbridge as well.  A nice thermaltake chipset solution w/fan and a low profile copper southbridge with shipping was about 45 bucks.  Hmm ... This is a sure fix from the threads I have read and its really kid of expensive to fix a simple defect. the problem is not necessarily with the heatsink not being sufficient.  Its the combo of the compound used vs the amount of pressure applied between the heatsink and chipset.  It was completely unacceptable.  I knew this right away when I was watching the temp and then I would press on the top of the IOH heatsink and I would watch it drop another 15 degrees in less then 10 seconds. The springs are extremely weak and not effective at all in transferring the heat from the NB.
    Here if my fix.  Cost me less than a dollar at the hardware store and it works ideal thus far.  Do this at your own risk.  Doing this will probably void any warranty too.   All my problems are solved and I am running at 57 degrees, YES, 57 degrees with the stock heatsink and no additional cooling.
    For one scrape all that old crap off like I did. Apply your new compound. But when you go to replace your heatsink, use the following method.  The trick is to use metal screws with a mobo washer, original springs from the plastic studs and a nylon locknut.  Use screws that are the same diameter and length (maybe a tad bit longer) as the plastic retainer studs.  Also grab a few of those red nylon mobo washers too, were gonna need them as well.
    After scraping and applying compound, reassemble as follows.  Screw with washer inserted into the back of the mobo so the threads are out front.  The plastic/nylon washer is betweeen the screwhead and the back of the mobo as a insulator. Put the heatsink on. With the threads thru the heatsink already, put the springs on and start spinning on the locknut.  I torqued the nut down on the spring until the spring almost became fully compressed.  The purpose of the spring here is really to prevent you breaking something and at the same time using the max force of the spring since it weak to begin with. Thats why we need to compress it down pretty much all the way. There will be little to no room in the spring at this point.  The heatsink at this point should be pretty solid to the board as well.  I noticed with the plastic studs before the heatsink would wobble if you gave it a little rocking back and forth before.  Not this time. Shouldn't move much if at all.  Remember not to torque down too much. You don't want to go beyond the springs compression. Even if you did by accident, its better then not using a spring at all. If you feel that it starts to feel tight when torquing, you torqued too far. Stop an backup a 1/4 turn or so.  It is also very important to make sure both torques are equal on both sides as well. Alternate sides when torquing down.  I could tell by how much thread I had left on both sides and by looking for any uneven sides.
    To summarize, the compound is a problem no doubt.  After you resolve the compound issue, its all about the adequate pressure between the heatsink and the IOH.  Much like the amount of pressure needed between your CPU and your heatsink give or take. And the pressure that would be as an aftermarket solution like the thermaltake chipset cooler. You dont see cheesy springs on that.  Wake up MSI. Simpy using a more effective spring could save MSI some cash in the long run. I envision a leafsprin design like the thermaltake chipset one.  The heatsink design could be better, sure, but the design itself is not the problem. Replace the heatsinks if you would like to, if your overclocking and stuff.  Funny, this board I have is a refurb too and only had it for a few weeks. Figured they would have done something about it.
    Sorry the pics are not the best. Here is about as close as I could get to the finished product

  • Problem with JTable and JPanel

    Hi,
    I'm having problems with a JTable in a JPanel. The code is basicly as follows:
    public class mainFrame extends JFrame
            public mainFrame()
                    //A menu is implemeted giving rise to the following actions:
                    public void actionPerformed(ActionEvent evt)
                            String arg = evt.getActionCommand();
                            if(arg.equals("Sit1"))
                            //cells, columnNames are initiated correctly
                            JTable table = new JTable(cells,columnNames);
                            JPanel holdingPanel = new JPanel();
                            holdingPanel.setLayout( new BorderLayout() );
                            JScrollPane scrollPane = new JScrollPane(holdingPanel);
                            holdingPanel.setBackground(Color.white);
                            holdingPanel.add(table,BorderLayout.CENTER);
                            add(scrollPane, "Center");
                            if(arg.equals("Sit2"))
                                    if(scrollPane !=null)
                                            remove(scrollPane);validate();System.out.println("ScrollPane");
                                    if(holdingPanel !=null)
                                            remove(holdingPanel);
                                    if(table !=null)
                                            remove(table);table.setVisible(false);System.out.println("table");
                            //Put other things on the holdingPanel....
            private JScrollPane scrollPane;
            private JPanel holdingPanel;
            private JTable table;
    }The problem is that the table isn't removed. When you choose another situation ( say Sit2), at first the table apparently is gone, but when you press with the mouse in the area it appeared earlier, it appears again. How do I succesfully remove the table from the panel? Removing the panel doesn't seem to be enough. Help is much appreciated...
    Best regards
    Schwartz

    If you reuse the panel and scroll pane throughout the application,
    instantiate them in the constructor, not in an often-called event
    handler. In the event handler, you only do add/remove of the table
    on to the panel. You can't remove the table from the container
    which does not directly contain it.
    if (arg.equals("Sit2")){
      holdingPanel.remove(table);
      holdingPanel.revalidate();
      holdingPanel.repaint(); //sometimes necessary
    }

  • Problem with application server shutdown when connecting

    Hi Friends,
    I am new to J2EE applications.
    I developed a web application that uses jxl and mysql for reading excel sheets. The host I am working on is supposed to be the server. The application I am running is working absolutely fine, by creating a directory and saving the excel file in my webapps folder and inserting the data to the database. But the minute I send the file from client system, there is a sudden shutdown in my server.
    I am sending the jsp and java code related to this application and related log file..
    I guess the main problem is with sending the exact path from the remote client, rest all is fine including excel and database interactions.
    I commented the database interaction class just for now as I don't think there is a problem with it.
    I am using Tomcat 4.1, MySQL 3.23
    ====================================================
    JSP FILE
    =====================================================
    <%@ page language="java" import="pdss.*"%>
    <html>
    <head><title>File Upload</title></head>
    <body>
    <%     String action=request.getParameter("go");
    String message=request.getParameter("msg");
    String str="";
    if(message!=null)
         str="Please enter valid filename!";
    ExcelInteraction xlInt=new ExcelInteraction();
    if(action==null)
    %>
    <center><font color="red"><%=str%></font></center>
    <form name="myform" method="post">
    <input type="file" name="filename"></input>
    <input type="submit" name="go" value="Send">
    </form>
    <%
    else if("send".equalsIgnoreCase(action))
         String filename=request.getParameter("filename");
         int ex=0;
         System.out.println("************"+filename.endsWith(".xls"));
         if(filename!=null && (filename.endsWith(".xls")))
              ex=xlInt.fileTransfer(filename, getServletContext());
         else if(filename==null || ("".equals(filename)) || filename.endsWith(".xls")==false)
              response.sendRedirect("uploadFile.jsp?msg=a");
         if(ex>0)
    %>          DONE
    <%     }
         else
    %>          Data Inconsistency found
    <%     }
    %>
    </body>
    </html>
    ======================================================
    JAVA FILES
    ======================================================
    ExcelInteraction:
    package pdss;
    import pdss.*;
    import java.io.*;
    import java.lang.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ExcelInteraction
         //PDSSUtilities pdsUtil=new PDSSUtilities();
         public int fileTransfer(String readFile, ServletContext app) throws Exception
              int i=0, j=0;
              String strDirectory = "pdssexcelfiles";
              System.out.println("..............ReadFile..."+readFile);
              File srcFile=new File(readFile);
              System.out.println(".................Created source file."+srcFile.getAbsolutePath());
              File destFile=null;
              String newDirStr="",srcFileName="",destFileLoc="", realPath="";
              try{
                   realPath=app.getRealPath("/");
                   System.out.println("newDirStr..........."+realPath);
                   newDirStr=realPath+strDirectory;
                   System.out.println("newDirStr..........."+newDirStr);
                   if((new File(newDirStr)).exists()==false)
                        boolean success = (new File(newDirStr)).mkdir();
                        System.out.println("....................success..."+success);
                        if (success) {
                             System.out.println(".................Directory...: " + strDirectory + " created");
                   srcFileName = srcFile.getName();
                   destFileLoc=newDirStr+"\\"+srcFileName;
                   System.out.println("DestFileLoc............"+destFileLoc);
                   if(srcFile.exists()){
                        destFile=new File(destFileLoc);
                        InputStream in = new FileInputStream(srcFile);
                        OutputStream out = new FileOutputStream(destFile);
                        byte[] buf = new byte[1024];
                        int len=0;
                        while ((len = in.read(buf)) > 0){
                             out.write(buf, 0, len);
                        in.close();
                        out.close();
                   System.out.println("............File copied to... "+destFile.getAbsolutePath());
                   System.out.println("......Closing Streams......");
                   /*if(destFile.exists())
                        j=pdsUtil.readXlData(destFileLoc);
                        System.out.println("..........j::"+j+"rows affected");
              catch(Exception e)
                   e.printStackTrace();
                   System.exit(0);
              return j;
    =====================================================
    LOG FILE FROM HOST SYSTEM:
    =====================================================
    2008-09-16 16:53:52 StandardContext[pdss]: Mapping contextPath='/pdss' with requestURI='/pdss/uploadFile.jsp' and relativeURI='/uploadFile.jsp'
    2008-09-16 16:53:52 StandardContext[pdss]: Trying exact match
    2008-09-16 16:53:52 StandardContext[pdss]: Trying prefix match
    2008-09-16 16:53:52 StandardContext[pdss]: Trying extension match
    2008-09-16 16:53:52 StandardContext[pdss]: Mapped to servlet 'jsp' with servlet path '/uploadFile.jsp' and path info 'null' and update=true
    2008-09-16 16:54:01 StandardContext[pdss]: Mapping contextPath='/pdss' with requestURI='/pdss/uploadFile.jsp' and relativeURI='/uploadFile.jsp'
    2008-09-16 16:54:01 StandardContext[pdss]: Trying exact match
    2008-09-16 16:54:01 StandardContext[pdss]: Trying prefix match
    2008-09-16 16:54:01 StandardContext[pdss]: Trying extension match
    2008-09-16 16:54:01 StandardContext[pdss]: Mapped to servlet 'jsp' with servlet path '/uploadFile.jsp' and path info 'null' and update=true
    =====================================================
    LOG FILE FROM CLIENT SYSTEM:
    2008-09-16 16:54:41 StandardContext[pdss]: Mapping contextPath='/pdss' with requestURI='/pdss/uploadFile.jsp' and relativeURI='/uploadFile.jsp'
    2008-09-16 16:54:41 StandardContext[pdss]: Trying exact match
    2008-09-16 16:54:41 StandardContext[pdss]: Trying prefix match
    2008-09-16 16:54:41 StandardContext[pdss]: Trying extension match
    2008-09-16 16:54:41 StandardContext[pdss]: Mapped to servlet 'jsp' with servlet path '/uploadFile.jsp' and path info 'null' and update=true
    2008-09-16 16:54:42 StandardContext[pdss]: Stopping
    2008-09-16 16:54:42 StandardContext[pdss]: Stopping filters
    2008-09-16 16:54:42 StandardContext[pdss]: Processing standard container shutdown
    2008-09-16 16:54:42 ContextConfig[pdss]: ContextConfig: Processing STOP
    2008-09-16 16:54:42 StandardWrapper[pdss:jsp]: Waiting for 1 instance(s) to be deallocated
    2008-09-16 16:54:42 StandardContext[pdss]: Sending application stop events
    2008-09-16 16:54:42 StandardContext[pdss]: Stopping complete
    =====================================================
    Regards
    Vasumitra

    The VERY FIRST message in the server log gives you a hint as to what the problem might be. The server thinks you have spaces in your PATH to the application server. Therefore, the solution is to kill the server however you need to (task manager, whatever) and then reinstall it in a path that doesn't contain spaces. That's the low-hanging fruit here; if that doesn't work, well, then we will have to find some other solution.

  • Problem with event handling

    Hello all,
    I have a problem with event handling. I have two buttons in my GUI application with the same name.They are instance variables of two different objects of the same class and are put together in the one GUI.And their actionlisteners are registered with the same GUI. How can I differentiate between these two buttons?
    To be more eloborate here is a basic definition of my classes
    class SystemPanel{
             SystemPanel(FTP ftp){ app = ftp};
             FTP app;
             private JButton b = new JButton("ChgDir");
            b.addActionListener(app);
    class FTP extends JFrame implements ActionListener{
               SystemPanel rem = new SystemPanel(this);
               SystemPanel loc = new SystemPanel(this);
               FTP(){
                       add(rem);
                       add(loc);
                       pack();
                       show();
           void actionPerformed(ActionEvent evt){
            /*HOW WILL I BE ABLE TO KNOW WHICH BUTTON WAS PRESSED AS THEY
               BOTH HAVE SAME ID AND getSouce() ?
               In this case..it if was from rem or loc ?
    }  It would be really helpful if anyone could help me in this regard..
    Thanks
    Hari Vigensh

    Hi levi,
    Thankx..
    I solved the problem ..using same concept but in a different way..
    One thing i wanted to make clear is that the two buttons are in the SAME CLASS and i am forming 2 different objects of the SAME class and then putting them in a GUI.THERE IS NO b and C. there is just two instances of b which belong to the SAME CLASS..
    So the code
    private JButton b = new JButton("ChgDir");
    b.setActionCommand ("1");
    wont work as both the instances would have the label "ChgDir" and have setActionCommand set to 1!!!!
    Actually I have an array of buttons..So I solved the prob by writting a function caled setActionCmdRemote that would just set the action commands of one object of the class differently ..here is the code
    public void setActionCommandsRemote()
         for(int i = 0 ; i <cmdButtons.length ; i++)
         cmdButtons.setActionCommand((cmdButtons[i].getText())+"Rem");
    This just adds "rem" to the existing Actioncommand and i check it as folows in my actionperformed method
         if(button.getActionCommand().equals("DeleteRem") )          
                        deleteFileRemote();
          else if(button.getActionCommand().equals("Delete") )
                     deleteFileLocal();Anyway thanx a milion for your help..this was my first posting and I was glad to get a prompt reply!!!

  • Problem with JTextArea or is it my code, Help!!!

    Hi,
    I am going crazy. I am sending a message to a JTextArea and I get some very wierd things happening? I really need help because this is driving me crazy. Please see the following code to see my annotations for the problems. Has anyone else experienced problems with this component?
    Thanks,
    Steve
    // THIS IS THE CLASS THAT HANDLES ALL OF THE WORK
    public class UpdateDataFields implements ActionListener {     // 400
         JTextArea msg;
         JPanel frameForCardPane;
         CardLayout cardPane;
         TestQuestionPanel fromRadio;
         public UpdateDataFields( JTextArea msgout ) {     // 100
              msg = msgout;
          }       // 100
         public void actionPerformed(ActionEvent evt) {     // 200
              String command = evt.getActionCommand();
              String reset = "Test of reset.";
              try{
                   if (command.equals("TestMe")){     // 300
                        msg.append("\nSuccessful");
                        Interface.changeCards();
                        }     // 300
              catch(Exception e){
                   e.printStackTrace();
              try{
                   if (command.equals("ButtonA")){     // 300
    // WHEN I CALL BOTH OF THE FOLLOWING METHODS THE DISPLAY WORKS
    // BUT THE CHANGECARDS METHOD DOES NOT WORK.  WHEN I COMMENT OUT
    // THE CALL TO THE DISPLAYMESSAGE METHOD THEN THE CHANGECARDS WORKS
    // FINE.  PLEASE THE INTERFACE CLASS NEXT.
                        Interface.changeCards();
                        Interface.displayMessage("test of xyz");
                        }     // 300
              catch(Exception e){
                   e.printStackTrace();
         }     // 200
    }     // 400
    // END OF UPDATEDATAFIELS  END END END
    public class Interface extends JFrame {     // 300
         static JPanel frameForCardPane;
         static CardLayout cardPane;
         static JTextArea msgout;
         TestQuestionPanel radio;
         Interface () {     // 100
              super("This is a JFrame");
            setSize(800, 400);  // width, height
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              // set-up card layout
              cardPane = new CardLayout();
              frameForCardPane = new JPanel();     // for CardLayout
              frameForCardPane.setLayout(cardPane);     // set the layout to cardPane = CardLayout
              TestQuestionPanel cardOne = new TestQuestionPanel("ABC", "DEF", msgout, radio);
              TestQuestionPanel cardTwo = new TestQuestionPanel("GHI", "JKL", msgout, radio);
              frameForCardPane.add(cardOne, "first");
              frameForCardPane.add(cardTwo, "second");
              // end set-up card layout
              // set-up main pane
              // declare components
              msgout = new JTextArea( 8, 40 );
              ButtonPanel commandButtons = new ButtonPanel(msgout);
              JPanel pane = new JPanel();
              pane.setLayout(new GridLayout(2, 4, 5, 15));             pane.setBorder(BorderFactory.createEmptyBorder(30, 20, 10, 30));
              pane.add(frameForCardPane);
                 pane.add( new JScrollPane(msgout));
                 pane.add(commandButtons);
              msgout.append("Successful");
              setContentPane(pane);
              setVisible(true);
         }     // 100
    // HERE ARE THE METHODS THAT SHOULD HANDLE THE UPDATING
         static void changeCards() {     // 200
                   cardPane.next(frameForCardPane);
                   System.out.println("Calling methods works!");
         }     // 200
         static void displayMessage(String test) {     // 200
                   String reset = "Test of reset.";
                   String passMessage = test;
                   cardPane.next(frameForCardPane);
                   System.out.println("Calling methods works!");
                   msgout.append("\n"+ test);
         }     // 200
    }     // 300

    Hi,
    I instantiate it in this class. Does that change your opinion or the advice you gave me? Please help!
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class CardLayoutQuestionsv2 {
        public static void main(String[] arguments) {
            JFrame frame = new Interface();
            frame.show();
    }

Maybe you are looking for

  • IPhoto failure after updating to Mavericks

    Helping out my neighbor. On 2 April, she logged into the App store and, using her Apple ID, she downloaded and installed Mavericks.  Her 7 year old iMac is currently running OS X 10.9.2. I tried to launch iPhoto and got the alert <You can't use this

  • Linked jpg background color?

    Is it possible to specify the background color of a linked jpg? I am linking directly to a jpg on my site and I think would like to keep it that way for sake of simplicity. The link looks something like this: http://my-domain.com/jpg-name.jpg I am ge

  • VGA cable external monitor

    I have a 2010 27 iMac and an external 22 inch Viewsonic monitor. 1. The monitor and VGA cable are about 5 years old. 2. I have the correct mini display port to VGA adaptor from Apple. 3. The external monitor works, however, it works only after I try

  • Client_host

    can i call excel sheet and save the details from the FORMS using client_host . i can open that excel sheet what i entered thro forms kindly tell me the solution and example

  • Allform outputs under one spool request?

    hai, iam executing the smart form for 10 customers(for sales orders). how can i get all these 10 outputs under one spool request? and if i execute the smart form ,i should not get the PRINT dailog screen.Directly , it should go to spool....how? regar