32,204 Topics

Member Avatar for
Member Avatar for lxXTaCoXxl

Does anyone here use Visual J#? If so can you provide some examples of syntax as well as examples of loops (for, foreach, do, while), declaration of variables, importing namespaces, how to build form style applications (a link would do on that one), and any further information you feel would …

Member Avatar for thines01
0
86
Member Avatar for morred

Heya, still rather new to programming, I'm having trouble understanding NullPointerException. The code below throws NullPointerException at rows 30 and 92. I do not quite understand why (as I understand it row 30 won't be run before the objects are created)? Any help would be appreciated!! [CODE]public class Uppg5_OH { …

Member Avatar for morred
0
156
Member Avatar for MrBillyUK

Hi all! I am having some trouble displaying the whole of a file within a JTextArea. The problem is that every new line of code that's read is showing within its own JTextArea rather than the text being displayed within a single JTextArea. I assume that the problem is something …

Member Avatar for MrBillyUK
0
145
Member Avatar for rhfh

Hi there, Any recommendation on Java books for starter? Just received an assignment on doing a cinema booking system.. Normally how long will it takes to complete this program? The lecturer gave us 2 weeks to complete this assignment, is it reasonable? Thanks for your kind reply. Cheers, happy new …

Member Avatar for rhfh
0
119
Member Avatar for 2concussions

hello. i am trying to make a text editor. i can't figure out how to get the file that i select in the JFileChooser to show in the JTextArea. and I also can't figure out how to get the text from the JTextArea to save into a .txt file. [code=java] …

Member Avatar for 2concussions
0
439
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
460
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
356
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
279
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
984
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
146
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
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
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

The End.