35,618 Topics

Member Avatar for
Member Avatar for chandrasekar21

Dear admin and friends, I need some programs and various ways to implement 1)threads 2)applet 3)creating client and server communication 4)reading and writing in a file and other file operations 5)creating and executing packages 6)what does j2ee include 7)some best sites like daniweb 8)commands like javac and javap-howmany and their …

Member Avatar for NormR1
0
57
Member Avatar for Dmiller071

Hi all! I've come very close to finishing this applet of mine but I'm stuck on one last part. The main purpose of this applet is just to fetch some data from a URL (read in 1 line, parse it, and display the data.) After starting this project, I found …

Member Avatar for NormR1
0
313
Member Avatar for Jessurider

can anyone tell me why this c# console command not running on java?.............. i've made a c# console program as given below [CODE=C#] using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace face { class Program { public static void Main(string[] args) { String path = …

Member Avatar for thines01
0
281
Member Avatar for nsyncpilu

Hy , I have a jTable , for printing it i`m using jTable.print(JTable.PrintMode.FIT_WIDTH). I have no problem with that. What i want to do is this (the table extends on 3 pages): On the first page the title should be "Bla bla bla" , and o the last page under …

Member Avatar for mKorbel
0
1K
Member Avatar for pri20

I want to perform automatically, the windows login by passing username, password in java code.Is there any open source tool available to record the username password fields etc of the machine.

Member Avatar for NormR1
0
152
Member Avatar for abhishek_s_n

Here is a simple code of chat between two peers. According to me, the code does what it should have but I am facing difficulty solving this SocketException error. This code worked fine till i made the last modifications. And now I am finding it difficult to trace the error. …

Member Avatar for abhishek_s_n
0
287
Member Avatar for chamnab

is it possible to use SWT widgets in swing ? if it can use, how to use it ?

Member Avatar for stultuske
0
72
Member Avatar for SagarSe7en

Hello Guys! Im developing a Quiz System for a game which i LOVE alot. Have done most of the work but still need some help from you guys! Problem faced is when the contestant answers it correctly the counter is not incremented and they are refusing to be passed into …

Member Avatar for SagarSe7en
0
247
Member Avatar for Dmiller071

Title says it all. I'm loading my image with the statement below [CODE] //logo = getImage(getDocumentBase(),"http://fromdustelune.com/FD_Logo.png"); logo = getImage(getDocumentBase(),"FD_Logo.png"); [/CODE] *The commented one won't work until I sign this applet (or so I believe that's how it's done* Then I call the paint method: [CODE] public void paint (Graphics g){ …

Member Avatar for NormR1
0
219
Member Avatar for mKorbel
Member Avatar for rcbandit

Hi, I'm new to java programming. I need a help about implementing OSGI module and EJB. I wrote this simple OSGI bundle: [CODE]package com.cryptoLib; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class cryptoSha { public cryptoSha() { } public String stringHash(String hash) throws NoSuchAlgorithmException{ MessageDigest md = MessageDigest.getInstance("SHA-256"); md.update(hash.getBytes()); byte byteData[] = …

0
64
Member Avatar for rotten69

Hi everyone, I'm just wondering why this method below causes an infinite loop to happen. I thought it would run once and then stop. Anyone can explain this? that'll be great. [code] public String printer(String s){ if (s.length() >= 5){ System.out.println("I'm " + s + " And my length = …

Member Avatar for rotten69
0
124
Member Avatar for J.S.AlKatheeeri

can someone please explain the static keyword? when a method is static what does it mean?

Member Avatar for karthi.k.s
-2
138
Member Avatar for begueradj

Hello people I create a simple Hello World project (servlet) o Netbeans. I configured it so as to run under Tomcat, but when I click on Run to execute the project it says this meassage: [COLOR="Red"] /home/begueradj/NetBeansProjects/projet1/nbproject/build-impl.xml:721: The module has not been deployed.[/COLOR] Why is that ?

Member Avatar for peter_budo
0
161
Member Avatar for R32@

Hello, My prof asked me to write a program that takes some information and save them for further uses. But I do not know how to save and keep information for a long time in java. I think I have to use arrays, but I don't know what should I …

Member Avatar for R32@
0
3K
Member Avatar for abosabry_2005

Hi there, I've always been wondering what's the best way to model a one-to-many relation between two Java classes and save them into a DB. For example, Imagine we have two classes Person and Address where a person might have more than one address, we know that the best way …

Member Avatar for abosabry_2005
0
160
Member Avatar for chixm8_49

Greetings! I would like to ask for some idea on how to create an image from the array of pixels that I have. The image should be in black and white (since the input image is black and white as well). Thank you.

Member Avatar for NormR1
0
3K
Member Avatar for oldezwe

I created a simple game in java. Could someone please link me to a tutorial or give me a basic run through on how to let other users connect and how to save their experience, etc... Peace and love, oldezwe

Member Avatar for Karlwakim
0
235
Member Avatar for jasleen12345

hi i am entirely new to eclipse, db2 and wasce. but for a certain project i need to make a project using the above tools in java. so i did the following 1. Installed db2 v 9.7 with username & password both admin 2. Installed wasce 3. Installed Eclipse my …

0
119
Member Avatar for vaironl

Hello forum, vaironl here. I have a project which will be due at the end of the year. I'm taking in the user input from 1- 40 ingredients with, name, amount, an unit. Additionally I'm taking a description which is a paragraph, and I store these values in a text …

Member Avatar for JamesCherrill
0
707
Member Avatar for sieuwe

Hi, I've got a problem with my project. When I initialize an arraylist, the content is displayed and you can go through the arraylist by correctly answering the given word. But when I load a new arraylist from a file, the old arraylist is removed and the new one is …

Member Avatar for JamesCherrill
0
225
Member Avatar for torkolort

Hi, I'm making a scoreboard for a simple word-game. The easiest way for this seems to be a JTable. I need both column headers and row headers, I believe this is achievable in JTable? For each game, the column headers should represent a random selection of predetermined categories, and the …

Member Avatar for JamesCherrill
0
330
Member Avatar for Armanious

I am aware of the MouseInfo.getPointerInfo() method, but you can only get the mouse location using this. However, I also want to know the buttons pressed (specifically just the BUTTON1_DOWN_MASK), without any events. This is because the program will ask the user to create a rectangle by dragging the mouse …

Member Avatar for JamesCherrill
0
237
Member Avatar for ocw91

Seriously need help here how can i wrte a program that read character only? i mean alphabert like people key in "i +am+ 12567 a",;. boy," and the program only read iamaboy is there another way other than lowercase the string and then compare a-z?

Member Avatar for JamesCherrill
0
161
Member Avatar for ocw91

I successfully compile the code through cmd, however when i run it, when i enter my password with anything(which fulfill the first condition (6-20))it will show error. The question is to write a program that let user to create a password which is valid (more than 6 letters, must have …

Member Avatar for stultuske
0
191
Member Avatar for ocw91

I have a serious problem here! i understand that the switch is wrong(the Str class should be fine). I wonder what datatype should it be? and if "char" how i am going to key in int value and how to use scanner on it ? The display menu is fix. …

Member Avatar for ocw91
0
181
Member Avatar for adarshcu

Hi All, I have a JAR file that contains a .dll file. But during an ant build a ZIP Error is thrown [CODE]error reading D:\COE\Libraries\client\WSQUtil-1.0.jar; error in opening zip file[/CODE] Is there a way to overcome this ? The jar looks fine(opens in winzip) and eclipse build path also references …

Member Avatar for adarshcu
0
226
Member Avatar for dany12

Hay everyone I want to learn(I need to learn java) java very fast. I have some knowledge of java but not the fundamentals like in html css php or sql and mysql. I know that the structure of a program in java starts with the imports than if you have …

Member Avatar for dany12
0
303
Member Avatar for cvanithakpm

plz help me... which file contains an applet that is to be run inside a browser? and is rmi is one language dependent architecture?[code]which file contains an applet that is to be run inside a browser[/code]

Member Avatar for cvanithakpm
0
60
Member Avatar for Majestics

I am using jcalendar... I want to bind it with a textfield, i am using button to display this calendar , but i want to display it below the date text field, any suggestions???

Member Avatar for Majestics
0
97

The End.