32,199 Topics

Member Avatar for
Member Avatar for nicole200718

When I enter done that doesn't work and it won't put the what I say that my title is for when it says please enter the relase year for? I don't know if my variables are initialized correctly? [CODE] // variables local to main String title = ""; int releaseYear …

Member Avatar for BestJewSinceJC
0
107
Member Avatar for jofin123

Hi Friends i want to Print the JTable content with Grid Could you please help me how to do that I AM POSTING my CODE HERE [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.table.*; import java.util.*; import java.sql.*; import java.awt.print.*; public class Report extends JFrame implements ActionListener, Printable,Pageable { private …

Member Avatar for rdavid
0
179
Member Avatar for litchi

Hi :) I am writing an application that converts text to braille for a varsity project. I got it working by using a library given to us by our professor, but I am trying to understand the code I am using, so I am re-writing the code and omitting any …

0
66
Member Avatar for SammC

I have a java question regarding get/set and overloading constructors: The problem is my calculations are not happening. Can someone tell me what needs to be done to get the calculation to work? Thanks in advance .... Samm [B][U]The output is:[/U][/B] After attempting to set to invalid Values (0 & …

Member Avatar for SammC
0
93
Member Avatar for system analysis

-The Rectangle class) Design a class named Rectangle to represent a rectangle. The class contains: 1. Two double data fields named width and height that specify the width and height of the rectangle. The default values are 1 for both width and height. 2. A string data field named color …

Member Avatar for Salem
0
151
Member Avatar for chern4ever

i have 2 applets each in separate files. lets say i wan to click a button in applet1, and it will show applet2, hide applet1 and vice versa. how can i achieve tat? [CODE]/** * @(#)ATM.java * * * @author * @version 1.00 2010/3/1 */ import java.awt.*; import java.awt.event.*; import …

Member Avatar for jamesonh20
0
119
Member Avatar for komyg

Hi, I've created a Web Service application inside Jboss 4.2.2-GA and I want to set up the jboss log4j configuration so that my Web Service logs inside a custom log file (not inside the server.xml). To do this I've altered the jboss-log4j.xml file to create another appender. This file is …

Member Avatar for komyg
0
194
Member Avatar for sharao

which one is better to get data from session r from database when we consider performance as well as security issues, and one more case too if the site is access by more ppl at a time also.... thanx..

Member Avatar for jwenting
0
46
Member Avatar for arivu2020

I am doing Java project ,in that I am trying create a chat program with multiple clients using the stream socket.The server can send message to all or any one client in the network. Client can communicate each other. Can any one help me. Thanks in advance.

Member Avatar for jwenting
0
76
Member Avatar for Geodude0487

I'm trying to write an external log-in class for my Adv Java class in school. It's an online section and the teacher is very hard to reach thus why I'm asking for help here :). But my problem is right now I have my log-in form and I have it …

Member Avatar for Geodude0487
0
123
Member Avatar for adityagadre

Please provide a sample stateful webservice in java which would be accible in both java and .net clients.

0
80
Member Avatar for anders10

Hi! I have a problem with an unintentionally exiting of a while loop. I'm trying to do a simple tic tac toe program. When one player has won the game, for example three X:s in a row, the program says "X wins!". So far OK. And thereafter I want the …

Member Avatar for gangsta1903
0
113
Member Avatar for OffbeatPatriot

I don't have ambitions of making a Turing complete language but I thought it might be cool to look into, at this moment my goal is pretty much to just do integer math, maybe functions. I've got the Antlr IDE plugin for Eclipse and I wondered if it would be …

Member Avatar for OffbeatPatriot
0
107
Member Avatar for hikma
Member Avatar for stultuske
0
89
Member Avatar for Waseem2010

Guys I need a good career advice. I am currently working in a IT consulting firm as a junior java developer. My firm wants to upgrade my skills. Since its a consulting firm they want to add extra skills in me to make me more productive. They have given me …

Member Avatar for stultuske
0
83
Member Avatar for eikal

hi i'm working on a program using all if else statements. I think i've lost myself in all ifs and elses and i need your guys help! It was working fine until i added some new if elses in the middle of the code heres what it looks like [code=java]import …

Member Avatar for stultuske
0
139
Member Avatar for Ghost

Hi, I'm trying to run my program in command prompt, but i get this error: [CODE] Exception in thread "main" java.lang.NoClassDefFoundError: Invaders [/CODE] Can anybody tell me what this error means? Thanx.

Member Avatar for stultuske
0
2K
Member Avatar for linkinmal

I'm trying to develop an editor application that support both text and drawings, images, etc. But all of these should be the same abstract object, they inherit the same thing. This will be like MS Word and I need to create a new component in the view for every element, …

0
64
Member Avatar for acid13burn24

ei guyz, i am new in java world, i knew some but i can't understand the some of them... can you help me to do the atm program,? can you share the codes?? thanks a lot..

Member Avatar for stultuske
-2
102
Member Avatar for PhiberOptik

Hey guys I am making a 2d RPG style game. I have a series of small images for each character choice, npc, etc which is integrated to each movement, how do you recommend I store these? Ie. Compile into a zip archive or jar archive...or just a folder within the …

Member Avatar for jwenting
0
83
Member Avatar for Aucun

I'm having weird applet errors, it runs fine in JCreator but then when I make a html file with [code]<applet code = "http://myrealsite.net/testapplet.class" width = "500" height = "500">[/code] It says it can't find the .class file when i have it right there and i can go to [url]http://myrealsite.net/testapplet.class[/url] and …

0
35
Member Avatar for beforetheyknew

I need to create date objects, to do that i think i need to use simpleDateFormat buuutt I'm using a startDate and endDate as parameters, so i dont know what to do. I've got another method that returns an int for number of days between them. Sorry I'm still an …

Member Avatar for Ezzaral
0
142
Member Avatar for xxunknown321

how do i read in files from a ".txt" file into a linked list heres my code. [CODE] import java.io.*; public class LinkedList1 { class Node { String element; // list element Node next; // successor link Node(String el, Node n) { element = el; next = n; } Node(String …

Member Avatar for BestJewSinceJC
0
192
Member Avatar for Polaris87

Hello all, New to the forum and to java. Here is an assignment I have been staring at for days. When I run my program it is multiplying the the loan amount by the interest rate and spitting thaT out as the answer for the monthly payment. What am I …

Member Avatar for BestJewSinceJC
0
145
Member Avatar for gaya88

hi I have a problem regarding calling print() method through main().It asks to pass arguments but i already done so using constructors.Any help in missing statement. [code] public class ElectricityBill { public static void main(String args[]){ current c1=new current(500,"January"); current c2=new current(1600,"February"); c1.print(double total,String month);/[COLOR="Green"]/this is the place i wanna …

Member Avatar for PopeJareth
0
163
Member Avatar for linx311

I need to write an inventory system program using java... The inventory control system should have 1. Login in to the system. 2. Adding new items. 3. Modifying data of selective item. 4. Deleting existing items. 5. Check the stock availability. 6. Real time stock management (ie. When purchase happen …

Member Avatar for javaAddict
-1
236
Member Avatar for syed aamiruddin

[code] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class SelectLayout extends JFrame implements ItemListener{ public static void main (String[] args) { SelectLayout sl=new SelectLayout(); } JMenuBar menuBar; JMenu lmenu,cmenu; JRadioButtonMenuItem lrbmenuItem,crbmenuItem; JPanel menuPanel,bPanel; JButton button; public SelectLayout() { super("Select Layout in swing"); menuPanel=new JPanel(); menuBar=new JMenuBar(); lmenu=new JMenu("layout"); ButtonGroup gp=new …

Member Avatar for stultuske
0
245
Member Avatar for sciwizeh

Hello All, While doing an assignment, I caused a simple program to slow to a crawl by replacing the calls to Toolkit.createImage() to ImageIO.read() and making all the Image references BufferedImage references. Those where the only changes I made to the program, and it went from running quickly to barely …

Member Avatar for kvprajapati
0
328
Member Avatar for cjsowm

[code] package assignment; import java.io.*; public class AddJava{ public static void main() { int num1,num2,sum; BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in)); try { System.out.println("enter first digit"); num1=Integer.parseInt(stdin.readLine()); System.out.println("enter second digit"); num2=Integer.parseInt(stdin.readLine()); sum=num1+num2; System.out.println(sum); } catch(IOException e) { System.out.println("input error"+e); } } } [/code] [code] package assignment; import javax.tools.*; import java.io.*; import java.lang.reflect.Method; …

Member Avatar for BestJewSinceJC
0
190
Member Avatar for ziaul1234

hi I am really having a problem on making a project of inventory system in Java. The project says: The inventory control system should have 1. Login in to the system. 2. Adding new items. 3. Modifying data of selective item. 4. Deleting existing items. 5. Check the stock availability. …

Member Avatar for linx311
-2
456

The End.