32,199 Topics

Member Avatar for
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
697
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
179
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
106
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
142
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 mvmalderen
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
Member Avatar for Consus

so this is my first homework ever in Java so heres what I need to do: 1)a project named LetterCounterExample(done) 2)a main class for the project of the same name as the project (done) 3)a class called LetterCounter (done) with the following members: i. field of type char named letter …

Member Avatar for javaAddict
0
110
Member Avatar for Jagan Mohan Rao

hi friends , How to establish a wired mesh network of our own in na lab. Also, i need a code for the project entitled "Heuristic algorithms for designing self-repairing protection trees in mesh networks". can any one help me out in this issue. i don't want simulation results. i …

Member Avatar for peter_budo
-1
86
Member Avatar for muusa

hello friends. i would like to know if it is possible to run a class file using a java program itself.i mean a program tht would return the answer (run) the class file .

Member Avatar for muusa
0
167
Member Avatar for adam291086

Hello i am new to java and playing around with some scripts. I have three java files [B]Main.java[/B] [CODE]package snake; import javax.swing.*; import java.awt.*; public class Main{ public static void main(String[] args) { new board(); } }[/CODE] [B]board.java[/B] [CODE]package snake; import javax.swing.*; import java.awt.*; public class board extends JPanel { …

Member Avatar for Stefano Mtangoo
0
159
Member Avatar for axn

cant figure out why summaryCounter wont increment?? [CODE] if (source == calculateButton) { int summaryCounter = 1; double payment = Double.parseDouble(paymentTextField.getText()); double rate = Double.parseDouble(rateTextField.getText()); int years = (Integer)yearsComboBox.getSelectedItem(); DecimalFormat currency = new DecimalFormat(" ##,##0.00"); double futureValue; String s; int i; futureValueListModel.clear(); System.out.printf("\n Investment Summary Option %d \n Monthly Payment%,10.2f\n …

Member Avatar for verruckt24
0
100

The End.