Forum: Java 12 Hours Ago |
| Replies: 3 Views: 193 Thanks for reply. UDP port 80 has nothing to do with TCP port 80... and you can see the client class:
- I have a byte array - the image as a byte array
- I send the byte array using more 533KB... |
Forum: Java 2 Days Ago |
| Replies: 3 Views: 193 Hello,
I have to take a snapshot of my screen and send the image to a client using Datagrams. I think my problem is at the client part. The image is null, and I don't know why.
Here is the server... |
Forum: Java 3 Days Ago |
| Replies: 3 Views: 216 Yes... I don't get it anymore now with small length but I don't know why when I get to:
Object o = ois.readObject();// it does nothing here, I tested
int[] r = (int[])o;
That's how I sent it:... |
Forum: Java 4 Days Ago |
| Replies: 3 Views: 216 I'm am trying to send over socket a very big array - length about 1300000 .... and I use ObjectInputStream and ObjectOutputStream. The problem is when I read the input stream... I get this exception:... |
Forum: Java 5 Days Ago |
| Replies: 2 Views: 236 Yes, it is possible... but not that easy. First you should learn about Java Media Framework (http://java.sun.com/javase/technologies/desktop/media/jmf/). After that I think you should register... |
Forum: Java 5 Days Ago |
| Replies: 2 Views: 175 I did it... sorry it is missing from my code but I did create the object. |
Forum: Java 5 Days Ago |
| Replies: 2 Views: 175 Hello,
In my application I transfer a lot of images from server to client. The problem is the size of the image, so I tried to encode it using this encoder (http://objectplanet.com/pngencoder/) -... |
Forum: Java 9 Days Ago |
| Replies: 1 Views: 221 Hello,
I built a chat application that uses sockets and TCP/IP protocol. The client is an applet. The problem is I cannot connect the applet client with the desktop server application. If I run... |
Forum: Java 19 Days Ago |
| Replies: 3 Views: 351 Indeed it's about focus and about the component... I finally got it, thanks for answering. I add a windows listenter + requested focus to the RIGHT component. For example this is not working:
... |
Forum: Java 19 Days Ago |
| Replies: 3 Views: 351 Please somebody help... this is unusual... why does the form not detect the keyboard? |
Forum: Java 19 Days Ago |
| Replies: 3 Views: 351 Hello,
I build my java desktop application using NetBeans 6.7, visually. So I click on the Frame -> Events -> KeyTyped and I add a new handler.
The problem is the key events are not detected! My... |
Forum: Java 20 Days Ago |
| Replies: 3 Views: 1,245 try this instead. I had the same problem:
try
{
robot = new Robot();
robot.mouseMove(0,900);
robot.mousePress(InputEvent.BUTTON1_MASK);
... |
Forum: Java 20 Days Ago |
| Replies: 1 Views: 318 I finally found it myself... don't know why but it works if I use "BUTTON1_MASK" instead of "BUTTON1_DOWN_MASK". |
Forum: Java 20 Days Ago |
| Replies: 1 Views: 318 Hi,
I want to "click" with the mouse using a Robot object like this:
Robot bot = new Robot();
bot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
... |
Forum: Java 21 Days Ago |
| Replies: 1 Views: 334 At least can someone give me a hint how to modify JVidCap example from Sun so that it records the screen? Here is the example. I can post the code if you like.... |
Forum: Java 21 Days Ago |
| Replies: 1 Views: 334 Hello,
In my project I have to capture screen activity (including audio) to a video file. I try using JMF for this. I don't know how to use those two classes: DataSource.java and LiveStream.java.... |
Forum: Java 26 Days Ago |
| Replies: 1 Views: 604 Wow.... I finally made it myself.. after a hard time. So I better post it, for people who seek this too.
//sending image from server
public void sendImage(File file) throws IOException {
... |
Forum: Java 27 Days Ago |
| Replies: 7 Views: 1,014 kind of... L2CAP connection is more reliable but I just can't make it work. Thanks :) |
Forum: Java 27 Days Ago |
| Replies: 0 Views: 458 I develop a chat (server and client) using Sockets. It's working on LAN but when I try to connect the client to the server using my public IP address it says it cannot connect to that address. My... |
Forum: Java 27 Days Ago |
| Replies: 7 Views: 1,014 Just download the wirelesss development kit for java and, after you install it ouy'll find a folder with a lot of examples there. As for my problem, I abandoned L2CAP connection and used... |
Forum: Java 28 Days Ago |
| Replies: 1 Views: 604 Hi,
I first convert the image on the server application in bytes:
//server
public void sendImage(File file) throws IOException {
ByteArrayOutputStream baos=new... |
Forum: Java 28 Days Ago |
| Replies: 3 Views: 503 Thanks. That jpg had a problem... it was overwritten or something... now works.
I mark this thread as solved.
PLEASE sciwizeh*, can you give me some hints about how is better to communicate over... |
Forum: Java 28 Days Ago |
| Replies: 2 Views: 228 Hello,
I'm trying to develop a chat application over internet. First I want to send just strings... later files. I want to have a client that is a java applet that connects to the server - a java... |
Forum: Java 28 Days Ago |
| Replies: 3 Views: 503 Please someone help me... why image panel not showing that image in the frame:
//image panel class
import java.awt.*;
import java.awt.image.BufferedImage;
import javax.swing.*;
public class... |
Forum: Java Nov 4th, 2009 |
| Replies: 6 Views: 872 I know. As a matter of fact... my project must be made for a "Software Engineering" Course (at University) and I'm leading a team so I was told we must also visually design our application coded (by... |
Forum: Java Nov 4th, 2009 |
| Replies: 6 Views: 872 Thanks Ezzaral. Useful post.
After some hours of searching I think I found how to change the look as I wanted and it's useful for all (who did not find it yet).
The "Synth" Look and Feel:... |
Forum: Java Nov 3rd, 2009 |
| Replies: 6 Views: 872 Thanks for the link... however I look for a less complicated way to do this... I found this link: http://pforfun.blogspot.com/2008/11/java-transparency-tutorial.html but I don't know if is a good... |
Forum: Java Nov 3rd, 2009 |
| Replies: 6 Views: 872 Hello,
I am trying to design an java desktop application. My question is: Is there a way to change the whole look? From example different titlebar, different jFrame, buttons... (designed with PNG... |
Forum: Java Oct 25th, 2009 |
| Replies: 2 Views: 364 No I cannot because that means I interrupt all users and when they join again.... the same thing, that exception. Users must stay connected. I use a refresh function for connection which works nice... |
Forum: Java Oct 24th, 2009 |
| Replies: 2 Views: 364 I'm developing a bluetooth messaging application which sends text messages between devices.
My problem is when I connect more than 2 devices. After sending some data between them (let us say 3... |
Forum: Java Oct 23rd, 2009 |
| Replies: 5 Views: 447 Can someone please tell me why I have been down-voted for previous post? I really wanted to solution this problem. I am used to explaint a lot of students facts like this so that's why I gave ki72... |
Forum: Java Oct 22nd, 2009 |
| Replies: 7 Views: 1,014 Nice book, I read something.... it's just it uses other type of connection and things that doesn't match my case (L2CAPConnection is more flexible than StreamConnection).
However thanks for... |
Forum: Java Oct 22nd, 2009 |
| Replies: 5 Views: 447 int a=0,b=0,c=0,d=0;
int n=4875;
int rest=0,i=1;
while(n!=0)
{
rest = n%10;//ghet the last digit of the number
n=(n-rest)/10; //the... |
Forum: Java Oct 22nd, 2009 |
| Replies: 10 Views: 866 Hmm... try defining that 'ActionListener' outside the constructor. |
Forum: Java Oct 22nd, 2009 |
| Replies: 7 Views: 1,014 Hello,
I'm working on a bluetooth chat application project called 'BlueChat'. I coded the server (BServer.java) and client (BClient.java) parts (2 separate threads). The visual part is called... |
Forum: Java Oct 16th, 2009 |
| Replies: 11 Views: 374 Did you try my idea bellow?
import java.io.File then use this code:
File f = new File("./");
System.out.println(f.getAbsolutePath());
This will tell you the absolute path of... |
Forum: Java Oct 16th, 2009 |
| Replies: 11 Views: 374 Add "import java.io.File;" then use this code:
File f = new File("./");
System.out.println(f.getAbsolutePath());
This will tell you the absolute path of the folder in which... |
Forum: Java Oct 16th, 2009 |
| Replies: 14 Views: 1,299 Yes. Thank you :). These are really good hints and valuable advices. (but I put " new usbThread(lbl_status).start();" in formWindowOpened event cause... again: Builder said 'non-static variable... |
Forum: Java Oct 16th, 2009 |
| Replies: 14 Views: 1,299 THANK YOU SO MUCH FOR SOLVING MY PROBLEM. I guess not only me was searching for this. :)
One note for the master :) : when said to add "new usbThread(lbl_status).start();" to the main function. You... |
Forum: Java Oct 16th, 2009 |
| Replies: 14 Views: 1,299 I designed the application in NetBeans visually (drag-drop). I tried also with the thread. Nothing freezes but the JLabel doesn't update even if the threads works fine in the background. Below it's... |