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...
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...
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
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...
hi!
How can i transfer a file over a socket?
I thought it would be pretty straightforward, but I couldn't think of any way.
The FileInputStream class cannot be wrapped around a socket, quite naturally, the way a DataInputStream can.
Any help would be greatly appreciated.
Avendeval
Hi!
I was wondering how one can create a pop-up menu that appears at right mouse button click.
I already know how to create the standard File, Edit Help, etc. kind of menus.
Any help would be greatly appreciated.
Thanks. Avendeval
I wanted to create a small modal window
and found out about the Dialog class.
However, I need to call the dialog from within an applet.
Is that possible - I kept getting some errors.
Actually what I need to do this is check the input a user has typed into a TextField, and if it's invalid some...
I'm new to JAVA.
Is there an equivalent to C/C++ friend classes
where you can declare a certain class a friend of another, so that he has access even to its private data members?
I know about protected (same in C++) but that's not the same. I need acces from an 'unrelated' class.
Thanks a lot...
Hi Guys!
I'm very new to JAVA.
I got the following assignment:
I need to load an image and then through a set of menus (I've done these already) I can choose to scale the image
25%, 50%, etc.
I was told I could do this with a Canvas.
However, I haven't been able to figure out how to use it
and...
What I draw ith pDC disappears if the window is covered and then is redrawn.
What do I need to to do keep what I draw more 'permanent'. Modify the ON_PAINT function?
thanks. Avendeval
Hi!
I was wondering if anyone knows good strategies for making a plot 'resize' so that the figure that I'm drawing (a polygon) is as big as possible for the fixed availalbe drawing area (ratio is preserved).
As I don't know many of the functions of the CDC class, I'm looking them up now, but...
My app consists of one
main dialog box.
One of the controls in the dialog is
a Picture one, but I've given it a Rectangle type.
Is it possible to draw only inside this area using the
CDC *pDC;
pDC = GetDC();
CPen bluepen;
bluepen.CreatePen(PS_SOLID, 1, RGB(0,0,255));
etc...
As a...
how can I add items (strings) to a list control?
Using SetDlgItemText(ID,"xxx");
doesn't work.
any suggestions. i just need some direction, no need to write long code.
thanks. Avendeval
i have double variable that is assigned the value of a function.
I cerr the variable with 20 precision and it gives
2.000000000000... then I compare it with another variable that is equal to 2.00 and the if statement x==y doesnt execute. insted the else statement executes.
just to test, in the...
I don't like the default(?) white background color of the list box control. Is there a way to change it?
Preferrably, to make it the same color as the color of the dialog box. (I'd like to achive the same effect as when you make an edit box control read-only).
Thanks. Avendeval
I'm using a css file that sets some special relative positioning. After I applied the style to a several-page long text and tried printing nothing shows after the first page.
I'm pretty sure it's because of this realtive position that I'm using (it's something like -7). Could that be the reason...
I have a main dialog window. By pressing a button, I open a nother window with DoModal();
Then I use
CDC *pDC;
pDC = GetDC();
CPen blackpen;
blackpen.CreatePen(PS_SOLID, 1, RGB(0,0,0));
pDC->SelectObject(&blackpen);
pDC->MoveTo(100,100);
pDC->LineTo(250, 350);
However, the above starts...
I don't know much about Win32 programming, I've just started using MFC.
A newbie question: I've created a resource, a dialog box.
My app actually consists of one dialog box with a couple of buttons. When I click one of them, I need the other dialog box to appear. How does one do that?
Thanks...
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.