32,199 Topics

Member Avatar for
Member Avatar for lordsurya08

I'm creating a game in which I draw polygons of varying sizes and shapes using awt/Graphics2D. To smooth out the polygons, I want to use series of cubic Bezier curves to make smoother edges. I spent some time poking around the Java awt and swing classes and saw the Bezier …

Member Avatar for SasseMan
0
456
Member Avatar for crazymidget01

I had offered to try and write a program for my job. This program needs to handle booking of parties, creating and adjusting customer accounts, printing invoices, party schedules and mailing lists, and a few other features. This project is a little ambitious, but I would like to give it …

Member Avatar for stultuske
0
187
Member Avatar for Karlwakim

Hi, i am new to java and just want to know if java is heavily used in software. And if we use it to make large applications, will it run slow ??

Member Avatar for Karlwakim
0
323
Member Avatar for silu210

Hello, everyone, I am new to this forum. My Jsp usebean tag returns null from javabean which is set by servlet. I followed everything from the forum, but sill getting null, below are the code. Some one please save me.Thank you now and Happy New Year 2012. My servlet(TestServlet.java) [code=Java]protected …

0
39
Member Avatar for dennysimon

Hello all I have classes all bundled in a package The name of the package is components All the classes placed in a directory c:\LJava\build\components The names of the clases are a.class b.class and c.class How to jar this package ? I use dos prompt(not net beans) main class is …

Member Avatar for dennysimon
0
142
Member Avatar for kartik bodala
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
56
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
308
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
278
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
957
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
143
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
283
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
71
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
246
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
217
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
63
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
121
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
136
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
157
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
233
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
117
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
704
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
224
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
329
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
234
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
159
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
189

The End.