Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Sedai

  1. Sedai

    xterm

    im running a X-Server on my WinXP machine im trying to start an xterm by telnetting to a UNIX station from it i type xterm -display 111.111.111.111:0.0 & but i dont get a window on my screen i tried to run the process in the foreground and yup, ot locks; what could be the reason ? the machine...
  2. Sedai

    how to use vectors within a sever/client multithreaded chat program

    i see now. i', using a different approach that's why i didn't get it at first. thanks. Avendeval
  3. Sedai

    dissapearing controls

    well, im not Alira, but I did find some of your comments helpful. You definitely deserve two starts ;) Avendeval
  4. Sedai

    how to use vectors within a sever/client multithreaded chat program

    Hi guys! Very interesting discussion. I had similar "synchronized" issues hehe so I was wondering why one should make the vector static? I thought static was used only to enable a user to use certain 'utility' methods without instantiating. Does static help with the synching too? Avendeval
  5. Sedai

    stuck with some code!!

    well, i dont think i understand that too well, but from a purely syntactical point of view, aren't you missing an [code]else[\code]. isn't the format if(boolean){ //code } else if{ //code } else{ //code } probably that has little to do with the problem, just something i noticed...
  6. Sedai

    textArea

    I have just one more question. Is it possible to do this with AWT, instead of Swing? Actually I guess it's stupid to ask, let me check if there is an equivalent to the JEditorPane. I found something like class BasicEditorPaneUI but it doesn't look too promising. Any adivce on that? Avendeval
  7. Sedai

    synchronized block syntax

    that makes a lot of things clear. What I've read about stop() and suspend() being dangerous in that they release monitors that might be locking other parts of the code, etc, or something like that. Now it makes sense. Thanks. Avendeval
  8. Sedai

    synchronized block syntax

    i need to synchronize a method, but actually only part of it needs to be locked, so i wanted to use {} synchornization instead of freezing the whole method. I thought that the syntax was the following: synchronized { //code } but it doesnt compile. apparently, there needs to be something in...
  9. Sedai

    help needed

    it very much depends what the relationship between the two classes is. are they named-nested, are they in the same package, or one is derived from the other? the most hmmm how to say the most obvious, but probably not so elegant way would be if class A, that has the Method has a referneces of...
  10. Sedai

    A question

    from my little knowledge of JAVA (probably im stating the obvious hehe) : the regualr GUI is faster, as it takes components, etc. directly from the operating system. Swing is completely jvm-generated so it's a bit slower, but it was created after awt so it's kind of cooler. at least for a...
  11. Sedai

    Values from methods into textfields

    Hi! im sorry, im not sure i understand the question. can u elaborate/clarify a bit? thanks. Avendeval
  12. Sedai

    textArea

    Is it possible to .append("blabla") differently coloured text to a textArea? For example to .append() one line of blue texts and another line of green. Thanks. Avendeval
  13. Sedai

    custom events and listening to them

    shoot of course, duh, it's so obvious hehe. i should extend my own Listener class. thanks a lot. i worked around that and don't need the special event/listener anymore, but still it's good to know. im still not used to JAVA hehe. thank a lot. Avendeval
  14. Sedai

    custom events and listening to them

    I've created a custom event alert = new WindowEvent(parent, AWTEvent.RESERVED_ID_MAX+1); if obj is a reference to the object that i want to receive the event and i type obj.dispatchEvent(alert) is that sending the event to obj? If it does, how can I detect that event. I tried...
  15. Sedai

    converting milliseconds into hours:minutes:seconds

    in case anyone runs into the same 'problem' hehe there's an easy solution. it depends what u need it for though. Use the Calendar class (I didnt find the Date class very helpful in this case). Avendeval

Part and Inventory Search

Back
Top