32,199 Topics
| |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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() … | |
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 … | |
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 … | |
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, … | |
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; … | |
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. … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 | |
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 … | |
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); … | |
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 … | |
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++ | |
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!!! | |
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, … | |
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 … | |
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 … | |
| |
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 … | |
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 … | |
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 . | |
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 { … | |
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 … |
The End.