32,204 Topics

Member Avatar for
Member Avatar for Janes

Hi, I would need help, pleas. I would like to portray the curve under the specified angles with the repeat and the number of segments. Will you help me please? now I have this: [code] import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Graphics; import java.awt.HeadlessException; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import …

Member Avatar for adams161
0
112
Member Avatar for adams161

I have a java applet and i'm letting the user open a chess engine on their computer. Technically they can open any program now. but it wont work unless its a chess engine that uses the winboard protocol. My question is could they maliciously choose to open any sort of …

0
86
Member Avatar for Shmoil

Forgive me I am still really new to Java. I have this swing application which creates a small JFrame that when clicked, counts down from 2 minutes and stops at zero. I build a GUI in netbeans IDE and I read that in order to place this timer code into …

Member Avatar for Shmoil
0
283
Member Avatar for Olliepop

Hey guys How can i make instances of drawString editable? For example changing their x, y and value? Do i use variables for example [CODE=java]g.drawString(str1, x1, y1);[/CODE] Will the change be reflected as soon as i change the values of the variables? Thanks very much for your time!

Member Avatar for AndreiDMS
0
100
Member Avatar for mseck

Hello I am new at java programming and having a hard time at this very basic coding. How to i write a java application that inouts 3 different integers from the keyboard and prints the outpout as in the following : Output the 3 different integers are: 13, 27, 14. …

Member Avatar for javaAddict
0
267
Member Avatar for Merosansar

I have loaded the rows of the data from the database in the list.Now,i am trying to display the list of datas on the JPanel which is loaded inside the parent JPanel on button click. I have retreived the list of data but not able to display the data on …

Member Avatar for musthafa.aj
0
700
Member Avatar for sumitweb

I am facing a problem in using JUNG. I want to draw a network diagram where the vertices will be having different shapes and colors and edges will be dashed or full line in different colors. Since I am a newbie in Java, I am unable to understand the actual …

0
45
Member Avatar for praveensagi

I have to access a uuge data from mysql , Can i replace that db call writing data into text file and accessing it again from the file itself . then file can be removed once data is processed

Member Avatar for masijade
0
99
Member Avatar for sweetheart39150

I keep getting an error starting from line public static boolean hide. Can someone please help I am using eclipse. [code]import java.util.*; import java.io.File; import java.io.*; import java.io.BufferedReader; import java.awt.*; import java.lang.String; public class Steganography { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated …

Member Avatar for masijade
0
180
Member Avatar for samdesilva

Hi, I am creating a website where a user has to register to access the site features. Once the user registers, his registration has to be confirmed by the admin guy, who is maintaining the site. The thing is I wanted a way to send an email automatically, once a …

Member Avatar for satuti
0
107
Member Avatar for wacky4444

My question is that the program is suppose to randomly generate a addition question with two integers less than 100 this is what i have so far: [CODE]import java.util.Scanner; public class ex3_13 { public static void main(String[] args) { // 1. Generate two random single-digit integers int number1 = (int)(Math.random() …

Member Avatar for javaAddict
0
79
Member Avatar for Olliepop

Hey guys :) I am stuck on this piece of code i am about to give below. What happens, is the server sends a "ping" to the client, the client sends "pong" back, but when the server sends "pong" back to the client (i KNOW this is sent) the client …

Member Avatar for JamesCherrill
0
212
Member Avatar for ceyesuma

Hello all. I have the TreeSet Component that won't add any thing uising the add method ex: [CODE]nameSet.add(projectName);[/CODE] The exception always gets the text in the String projectName xxx for example. and Throws nullpointer and traces out the string but adds null to it. ex xxxnull What more do I …

Member Avatar for AbhikGhosh
0
151
Member Avatar for vampgirl13

Hi Everybody, I've created an array to hold the alphabet . It uses the scanner class to ask the user for a position in the array and print that. I have the first part working however I need to use system.array copy to create a new array of size 27, …

Member Avatar for AbhikGhosh
0
2K
Member Avatar for CurtisEClark

I'm making this code for class but it will only display the number of days as 28 29 or 30. Im new to Java and would really appreciate help. [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package days; …

Member Avatar for AndreiDMS
0
123
Member Avatar for powerbox

Hi guys I just need some enlightenment on how I should implement one of my projects. I've been migrating my codes from unmanaged to manged code and I chose Java as one of our primary PL to use. From time to time I've used some of Java products like GlassFish. …

Member Avatar for pelegri
0
245
Member Avatar for glenlivet

I'm pretty new to java and I've read some documentation on Layout specifically BoxLayout. I'm not hung up on BoxLayout but it seemed to do what I need. Problem is that label (status) is not left aligned and I can't seem to force it to the left. It will move …

Member Avatar for glenlivet
0
94
Member Avatar for Xeros606

I've taken a few classes in high school that used java (including AP Computer Science A/AB) and have a grasps on the basics of the language. However, I know nothing on making an actual application, since most of the projects we made in class were simple little things; their main …

Member Avatar for mohamedsafiq
0
86
Member Avatar for Nicky4815

Hi, I'm working on a dissertation based around graph visualization. I need to make a GUI for my program but I am having trouble getting the JPanels to display what is required. My code so far: [code] //Class to create the GUI import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.Component; import javax.swing.JFrame; …

Member Avatar for mr.george
0
133
Member Avatar for pucivogel

i have to create a n hotel management program using GUI, i hava done the gui part so far but i need help in creating the actionPerformed class,how am i supposed to do the reservation,and select rooms for 2 persons or one and rooms that overlook the sea or the …

Member Avatar for pucivogel
0
1K
Member Avatar for Merosansar

I created a panel in the other components of inspector window in netbeans. I want to add and display this created panel inside the panel on button click which is inside the frame.But so far i am not able to do so. Any help will be appreciated

-1
58
Member Avatar for peter_budo

The aim of this thread is to gather useful information in regards of Java web development. If you know some tips and tricks, tutorials or any interesting links that has not been already mentioned in previous posts please share with us (please always check to avoid double posting). Please DO …

Member Avatar for peter_budo
4
3K
Member Avatar for eikal

hi, i just learned how to use the while code and put it in a simple program im working on, i however am stumped on how to use it in a part of it here is a snippet of the program code [code=java]String classname, faction; Scanner inputDevice = new Scanner(System.in); …

Member Avatar for peter_budo
0
124
Member Avatar for deftech69

I have a question about handling binary files. I am trying to create a method called read in a user defined class called Record that will handle the data from the file. Each record has 84bytes and the first 20bytes is a String, and the rest, 64bytes is for 16 …

Member Avatar for ~s.o.s~
0
143
Member Avatar for Ghost

Hi, I was wondering if there was a way to compare two images for similarity (i.e. checking to see if signature is same as signature on a credit card). Thankx in advanced. -- C++

Member Avatar for JavaHelper
0
2K
Member Avatar for jonnybgood

Hi, I need your help. I'm searching for very tough JAVA tests over the net. Can you send me links of such a tests. Thank you!!!

Member Avatar for Salem
0
51
Member Avatar for Draculaboy1014

I have to do this simple project: (a) A new project named LetterCountExample (b) A main class for the project named the same of the project. (c) A class called LetterCounter, with the following members: i. A eld of type char named letter. ii. A method of return type int, …

Member Avatar for tux4life
0
116
Member Avatar for jogendar

i have used the following code to save the text in a textpane into a file [code] final RTFEditorKit kit = new RTFEditorKit(); jta.setEditorKit(kit); jfr.setTitle(fname.getName()); OutputStream out = new FileOutputStream(fname); kit.write(out,doc,0,doc.getLength()); out.close(); [/code] where jfr is the main frame,jta is the textpane,fname is the filename given by the user,doc is …

Member Avatar for jogendar
0
72
Member Avatar for eikal

hi, this is a program where you type a name of a class and it gives a brief description, what i want to do is after it gives the description of a class it goes back to the beginning of the script and asks you to enter another one. How …

Member Avatar for verruckt24
0
225
Member Avatar for Namrata.Bibodi

The End.