35,619 Topics
![]() | |
Hello friends, I am working with jsp and oracle database and The problem is after inserting 3 enteries(rows) through form filling into database next enteries are not going in databse.So please suggest me something. | |
Hey, Guys and gulls i need help with the following asap. I'm trying to code a checkers board in java and populate it with checkers and then paint this onto a JPanel. I then add the JPanel to my JFrame. I am able to draw my checkers board and populate … | |
Whenever I load the object there are these random symbols around the data. public void Save() { try { System.out.println("Where would you like to Save?"); File thefile = new File(Input.next()); FileOutputStream fout = new FileOutputStream(thefile); ObjectOutputStream oos = new ObjectOutputStream(fout); oos.writeObject(list.getRoot()); oos.flush(); oos.close(); fout.flush(); fout.close(); } catch (Exception e1) { … | |
Hi I am currently writing a pool game in java and am very close to finishing it. I am having a problem with the rule of the black ball being potted out of sequence. I need all balls to be potted first before the black ball is potted if all … | |
Hi Guys [B]I must ask everyone bear with me regarding my idea it needs a bit of explaining before it makes sense[/B] to start this is totally a project in my own time for my own learning and development in programming it is being done for my employer but I … | |
| |
HOw can i assign a default action of Enter key after cell of jtable is edited to a Button??? | |
hey there, I am trying to set up tomcat on my computer (I am so new to this, I am not even sure I am explaining my problem correctly.) I was told to install XAMPP. I did using the installer that appache's web site offers. It says that the installer … | |
import java.awt.*; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import javax.swing.*; import java.io.*; public class one extends JFrame { public one() { JPanel p = new JPanel(); JLabel l = new JLabel(); setTitle("ScrollText"); setSize(600, 400); setLayout(new BorderLayout()); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); BufferedImage image; p.add(l); add(p); try { File file = new File("D://Photos//foto(222).jpg"); image = ImageIO.read(file); … | |
Hey all, I need to get a design going to parse some XML files, in the past i have used XStream to parse files, however it doesn't appear to be working in this case. Here is a sample of the generated XML i'm trying to parse: <debugging level="0" /> When … | |
I have two differnt classes' that extend from the JFrame class. I have a button on one frame that should go to the next Frame, but how would I do that? | |
Hi, are there any Java book available for some one who has NO knowledge about programming at all? I tried books like head first java, thinking in java but they were no help. Head first java started out with coding and I just knew nothing by reading the syntax. Are … | |
Hi, I am currently working on a java program for class and I cannot figure out what I am doing wrong. Each week I have been creating this java program that calculates sales, total compensation, etc. Well for my final team assignment my group has to take a piece of … | |
When I run the follwin cod it shows err could any one tell me <%@page import="java.util.ArrayList"%> <%@page import="BeanClass.User"%> <jsp:useBean id="listUser" type="ArrayList<BeanClass.User>" scope="session"/> Its Shows undefined type error thanks in advance | |
Good evening, I have a simple problem. I'm making a shopping basket and i want to add some prices for the items but i can not figure out how to pass the value from one page to another in order to view the total ammount of payment in the cart … | |
I have created the buttons for on-screen keyboard. The only thing I don't know is how to add the corresponding letter/character via actionListener to the jTextField. I know if it was not jTextField I could use "append". | |
Hello! I am very new to Java and programming theory and desperately trying to improve my knowledge. This is the first program I've made without help and really would appreciate some feedback. I know there must be 1,000,000 better ways to do what I did. Notes: - I want to … | |
Hi, I am trying to add content to an excel sheet using the below code. However, when I open the excel sheet, nothing is added. Please advice. public class StepNoToExcel { HSSFWorkbook wb = null; String fileName = "C:\\StepNoForEvidences.xls"; File file = null; StepNoToExcel() { file = new File(fileName); if(!file.exists()) … | |
I am trying to update database by editing cell values in jtable. my table looks like  When i edit the value in particular cell and without clicking anywhere if i click on Update button the database is not updated as like this !  but if i … | |
Hello everyone,I have little problem over here with my work. It gives null pointer about JTextArea in ActionListener. Could anyone help me,please? Thanks in advance Here's code: import java.awt.event.*; import java.io.*; import javax.swing.*; /** * @author Nikola * */ public class FileListener implements ActionListener { private JMenuItem exit; private JMenuItem … | |
Hi there, I wrote code that reset search settings, code is: function formReset() { var fields = document.getElementsByTagName( "input" ); for ( i = 0; i < fields.length; i++ ) { if ( fields[ i ].type == "checkbox" ) fields[ i ].checked = false; } document.getElementById( 'rrpmin' ).selectedIndex = 0; … | |
Im taking a java class right now but I am still a complete noob. I want to make a program where it searches a text file and will write the usernames it finds to a new text file. Usernames are always found like this in the file... <a href="/user/iEpic" the … | |
//Application Forms import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.GridLayout; import java.awt.HeadlessException; import java.awt.Panel; import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Vector; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.table.TableCellRenderer; … | |
I want all three applets conaitning this site http://www.planetarypositions.com/ can anybody help me? | |
Hello I am new to java and am having problem loading table numbers from mysql database to tablenumberJComboBox. I am using the load tablenumbers method. private void loadTableNumbers() { // read all table numbers from database try { // obtain all table numbers myResultSet = myStatement.executeQuery( "SELECT tableNumber FROM restaurantTables" … | |
I want to write a version of the SAND GAME. I want to examine the color of every pixel in a Jframe window. I use something like this. Toolkit toolkit = Toolkit.getDefaultToolkit (); Dimension dim = toolkit.getScreenSize(); int height = dim.height; int width = dim.width; GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice … | |
I need help getting the Apache POI set up correctly. I downloaded this file: [url]http://mirrors.devlib.org/apache/poi/release/bin/poi-bin-3.2-FINAL-20081019.tar.gz[/url] from poi.apache.org, and don't know what to do next? Where do I put this file? Are there other files I need to download? I hear talk of setting a "Classpath". What is this, and how … | |
EDIT: Im an idiot. The hand-shake like mechanic i put in where the server waits for the client to respond was the reason it was so slow, removed it and it worked. I misunderstood/forgot how streams work.. Ok. So i just started learning how to use the network utility there … | |
I installed Apache Tomcat 7.0.28 in my JBuilder6. I use JDK 1.6.0_32 (jre6). I can get http://localhost:8080/ page. However, when I tried to run my JSP file, I encountered following error: org.apache.catalina.startup.Bootstrap start -config "C:\Documents and Settings\user\jbproject\whoznextdoor\conf\server8080.xml" -nonaming Jun 23, 2012 8:22:47 AM org.apache.catalina.startup.Bootstrap main WARNING: Bootstrap: command "-nonaming" does … | |
Hey i am making an application that stores employee's details and the output is different than what it should be i was expecting the output to be the toString() in the employee class can anyone see anythin wrong: //Imports: //******************************************************************** //Employee Class. public class Employee { //Variables. private String employeeName; … |
The End.