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...
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
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...
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
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
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...
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...
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...
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
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
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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.