32,199 Topics
| |
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 … | |
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 … | |
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 … | |
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 & … | |
-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 … | |
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 … | |
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 … | |
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.. | |
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. | |
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 … | |
Please provide a sample stateful webservice in java which would be accible in both java and .net clients. | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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, … | |
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.. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
[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; … | |
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. … |
The End.