35,617 Topics

Member Avatar for
Member Avatar for ceyesuma

Topic The topic of this question is: JSF_navigation and database connection Hello and Thank you in advance for any assistance. [b] System info: [/b] Netbeans6.7.1,jsf1.2,two MySQL databases.(one for login one for searches) [b] The purpose of this post is: [/b] Try to get the login jsp to switch to the …

Member Avatar for ceyesuma
0
158
Member Avatar for Sinh

Okay, we are on the third assignment in Java, Java, Java. I do not understand the book that well and while I have been searching google for something explained in simpler terms it hasn't came up. We have two files: OneRowNim2.java and Assign3.java The specifications were: You are to create …

Member Avatar for Sinh
0
178
Member Avatar for ShailaMohite

Hello.Can anyone tell me how to differentiate between voice packet i.e. real time packets and data packets i.e. non-real time packets while simulating the network using java network simulator.(jns 1.7) Is there any way to identify the packet header in order to check it! Please help me.Its urgent!

0
62
Member Avatar for ankiwalia

Hi all, i am new to java servlets. i simply created a login form with username and password fields. now when i deployed it on tomcat server, after i click on submit button it gives the following error: java.sql.SQLException: Column not found codin of this login servlet is attached below. …

Member Avatar for ankiwalia
0
206
Member Avatar for low1988

i am creating a bank application with connection of MS ACCESS Database which is already construct a table with the following statement [CODE] Statement stmt = con.createStatement(); stmt.executeUpdate("CREATE TABLE ACCOUNT " + "(AccName VARCHAR(32), AccNum INTEGER, Deposit FLOAT, " + "Balance FLOAT, Withdraw FLOAT)"); [/CODE] So everything works fine ,the …

Member Avatar for javaAddict
0
123
Member Avatar for kulrik

Im having trouble with this problem: The Maclaurin series for arctan(x) is a formula which allows us to compute an approximation to arctan(x) as a polynomial in x. The formula is: arctan(x) = x - x3/3 + x5/5 - x7/7 + x9/9 - x11/11 + . . . Write a …

Member Avatar for javaAddict
0
312
Member Avatar for talablink

I got this code but there seems to be a problem an error showing Error javax.microedition.media.MediaException: Player cannot be created for audio/basic I don't know how to fix it.. Does anyone have an idea? Thanks [CODE]import java.io.*; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import javax.microedition.media.*; import javax.microedition.media.control.*; public class RecordMIDlet extends MIDlet{ …

0
97
Member Avatar for kulrik

Homework help Up Vote 0 Down Vote #1 24 Minutes Ago | Add to kulrik's Reputation | Flag Bad Post Im having trouble with this problem: The Maclaurin series for arctan(x) is a formula which allows us to compute an approximation to arctan(x) as a polynomial in x. The formula …

Member Avatar for darkagn
-1
81
Member Avatar for dombit

Ok, I use apache web server to host a club website within a school network. Now I need a script to display the ip address of my web sever because it is constantly changing. Is there scrip that will perform this function. note: the site only works within the school …

0
68
Member Avatar for TigerGirl

Hi I am trying to find out the complexity class estimate of algorithms. So, the first one is f(100) = 20, f(200) = 76, f(400) = 325, so would that be O(log2 N)? And then f(100) = 100, f(200) = 119, f(400) = 139, and this would be O(1) like …

0
62
Member Avatar for TigerGirl

Hi I have a method that has a reference to a linked list and an int that is the value. I want to recursively call that value to count and return how often that value is in the linked list. So, here is what I got: [CODE]public static int find(LinkedNode …

Member Avatar for TigerGirl
0
105
Member Avatar for kulrik

With this problem. I finished the coding, but my output is displayed in Radians instead of Degrees. Can anyone help? Here's my coding: public class MyMath { public void displaySin() { int angle = 0; System.out.println("Angle\tSin(Angle)\tValue"); while(angle<=360){ final double RADIANCONST=180; double angleRadian; angleRadian = Math.sin((RADIANCONST*angle)/RADIANCONST); System.out.printf("%d\tSin\t(%d)\t%5.2f\n",angle,angle, angleRadian); angle = angle …

Member Avatar for kulrik
-1
82
Member Avatar for oneat

I'm using netbeans graphic intarface to create my own JPanel. But I have a problem. When I change panel's layout in grid one I can only place cells on left and right side only of others. So instead of 2x2 I can only make 4x1. Do you know what shoyd …

Member Avatar for BestJewSinceJC
0
120
Member Avatar for iamsmooth

So I have an interface program called: IstackInterface.java, which contains method declarations and it compiles fine. I put it in a package we call package abc. Now I have another java program called IArrayStack.java that says: [code] public class IArrayStack implements IStackInterface { // code goes here } [/code] But …

Member Avatar for BestJewSinceJC
0
146
Member Avatar for jimmylee

How do I convert the Integer to String by: 1. Asking the user to input the number (Eg: 704 = Seven Hundred and Four) 2. Display the output in JTextArea. 3. Using Arrays Thanks for your support.

Member Avatar for BestJewSinceJC
-2
82
Member Avatar for sxk

Hi can you please help me with the following code program as I am new to java. [B][U]Step1: define the interface named Ashape[/U][/B] write an interface called Ashape that defines: double DEFAULT_SIZE equal to 1.0 [by default it is constant] method calcPerim() that returns a double equal to the perimeter …

Member Avatar for javaAddict
0
118
Member Avatar for Mcdermid

I was hoping someone could give me the code to read and then to system print out the words in the text file. The textfile contains: One, Two, Three, I'm new to IO readers so this would help alot as I'm having trouble reprinting the information out.

Member Avatar for Jocamps
0
81
Member Avatar for alkeshtech

Hey guys, what are advantages of external and internal iterators? I understand that internal allows you to add and remove nodes as it has implicit reference to data in the outer class? So, why would we need an external iterator? What are pros and cons of both?

Member Avatar for JamesCherrill
0
119
Member Avatar for low1988

Is there anybody could tell me what does this function use for?For example : [CODE] String strTemp = JOptionPane.showInputDialog(null,"Please Enter C To Open A Current Account \n Or J To Open A Joint Account"); switch(strTemp.charAt(0)){ case 'c': case 'C': //code statement break; case 'j': case 'J': } [/CODE] Basically if …

Member Avatar for low1988
0
705
Member Avatar for urstez

Hello... I am doing a project related to developing a system health monitoring tool for systems in the network in java platform. I need a few suggestions on how i can proceed in this project. Following are a few doubts i have in mind.. [B]1. Is it possible to access …

0
153
Member Avatar for OffbeatPatriot

I just made a program using JOGL and one problem I'm having is that if I don't include the arguments -Dsun.java2d.noddraw=true and -Dsun.awt.noerasebackground=true then the screen flashes and sometimes just stops refreshing until I jiggle it a little If I include these arguments everything is perfect but my intention is …

Member Avatar for OffbeatPatriot
0
90
Member Avatar for shroomiin

Hello all, i was just introduced to objects and am trying to construct a program using get/set. i just want to set the user read variable and read it back. I have it almost figured out but for some reason it will not display anything for the value. heres what …

Member Avatar for javaAddict
0
122
Member Avatar for keekee

Uncaught error fetching image: java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99) at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:113) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.j ava:240) at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172) at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136) [CODE]import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.FlowLayout; import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.Image; import java.awt.Toolkit; import java.awt.Dimension; import java.net.URL; class Inventory { String number; // item number String name; // item name int …

Member Avatar for masijade
0
187
Member Avatar for KimJack

For some reason this method prints out an extra integer at the bottom. For example: It is supposed to only print out 4 x4. 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Any idea how to remove the extra character? [ICODE] …

Member Avatar for quuba
0
114
Member Avatar for VirtueAL

Hello. This is my first post! I'm having some difficulty with this code. I have a light-bulb which is attached to a powerplug. When the mouse clicks the power plug, the light-bulb turns on, and turns off when clicked again using mouse events. Now I want to create more light-bulbs, …

Member Avatar for quuba
0
98
Member Avatar for toomuchfreetime

Hey all, I'm doing my final year in collage and have come up with an idea of using rfid readers and chips to track peoples movement within a defined zone. I've been told that i will be using JBoss but that hasn't been nailed down yet. What i need help …

Member Avatar for toomuchfreetime
0
186
Member Avatar for kartheepanmirra

There is a java based chat client called as SparkCLIENT which is widely used as a messenger.THE SERVER WHICH SUPPORTS THIS CLIENT IS OPENFIRE SERVER.The technology involved in the communication of messages between the client and the server is xmpp protocol.This is the technology being used in GTALK client. The …

-2
72
Member Avatar for raneen

i have an assignment a bout TicTacToe game i need its code in java language its functions are draw_board play_turn set_square check_end check_line please i need it now

Member Avatar for ejosiah
-3
250
Member Avatar for ppeter

hi, I need to use JMock to perform the unit testing of the application. The main purpose is to apply JMock in my unit testing. For that I need to create mock objects. Let me know if you have any suggestions with respect to the error:"expected method was not invoked …

-1
47
Member Avatar for why1991

I have my code and it compiles, and makes sense to me, but I must have something wrong because it only puts out 0's on everything except 1. There is something I am missing, and I don't see it yet. [CODE]import java.util.Scanner; public class MyBestFreon { static int max; static …

Member Avatar for VernonDozier
0
173

The End.