32,204 Topics
| |
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 … | |
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 { … | |
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 … | |
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 … | |
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] … | |
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 … | |
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 … | |
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 ?? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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. | |
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. … | |
is it possible to use SWT widgets in swing ? if it can use, how to use it ? | |
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 … | |
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){ … | |
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[] = … | |
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 = … | |
can someone please explain the static keyword? when a method is static what does it mean? | |
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 … | |
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 … | |
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. | |
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 | |
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 … | |
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 … |
The End.