31,001 Topics

Member Avatar for
Member Avatar for shivers20

I am having some difficulty, any advice would be gladly appreciated. Thanks in advance. [B]Write a program that reads the following information and prints a payroll statement:[/B] [B]Employee's name[/B] [B]Number of hours worked in a week[/B] [B]Hourly pay rate[/B] [B]Federal tax withholding rate[/B] [B]State tax withholding rate[/B] [B]Enter employee's name: …

Member Avatar for stultuske
0
3K
Member Avatar for mo1994

I am working on Image Viewer How do I work on the Action button to display images one after the other with Next and Previous

Member Avatar for stultuske
0
111
Member Avatar for kiroyzki

This is how i try to run my JDK via cmd but i always get en error: ______________________________________________________ Microsoft Windows XP [Version 5.1.2600] © Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Elliona>cd desktop C:\Documents and Settings\Elliona\Desktop>cd kirby C:\Documents and Settings\Elliona\Desktop\kirby>path C:\java\bin C:\Documents and Settings\Elliona\Desktop\kirby>javac payroll.java C:\Documents and Settings\Elliona\Desktop\kirby>java payroll.java Exception in …

Member Avatar for stultuske
0
606
Member Avatar for Doogledude123

This is PART of my GoldMiner class where the problem is occuring. I am getting a null pointer. I assume it is because of the way I declared my sceneController class. private static Game game; private static sceneController controller; public static void main(String[] args) { Application.launch(GoldMiner.class, (java.lang.String[])null); game = new …

Member Avatar for Doogledude123
0
7K
Member Avatar for anisha.silva

Hi, i am new to groovy language. I was wondering if there will be anyone who will be able to help me understand the below code. static analyzeAPI(pkgname) { def refs = Yaml.load(new File(output_base + "/${pkgname}_PackageRefs.yml").text) refs.Classes.each { analyzeClassRef(pkgname, it.name) } } static analyzeClassRef(pkgname, name) { println "=== Analyze class …

Member Avatar for anisha.silva
0
217
Member Avatar for Pyler

Node inside a linkedlist SomeInterface has an addLast() method that should add a node at the end of the list public LinkedList<T> implements SomeInterface<T>{protected class Node<T>{ privateT data; private Node<T> head,tail; protected Node(T data,Node<T>tail){ this.data=data;head=null;this.tail=tail;} private T getInfo(){return this.data;} private void setTail(Node<T>newTail){this.tail=newTail;} private void setLink(Node<T>newHead){this.head=newHead;} private Node<T> getLink(){return tail;} }} …

Member Avatar for Pyler
0
196
Member Avatar for custurd122000

I need a code that reads in a text file into an object Computers and sorts the specific indexes in descending order, as you can see the first one vendors is already sorted so you just need to print that one. Then in my case 2 I need to print …

Member Avatar for cgeier
0
499
Member Avatar for anisha.silva

Hi, I have a parser in .madl language in a txt format and I want to implement the code completion in java in eclipse plugin project. Fro ex: code completion is in a java editor if you press Ctrl+space a popuo window appears with relating option that are available, I …

Member Avatar for anisha.silva
0
416
Member Avatar for anisha.silva

Hi, I am implement a plugin project in eclipse in java language. I have a parse which is in s simple txt file. Below is the txt for the parser. id=app1 [String] #type=app [String] mainView=top name=First App [String] children: size=1 === child[0] === class=View id=top [String] #type=View [String] #line=8 [Integer] …

0
151
Member Avatar for sk8ergirl

I have combo box and two type of employee in my db I want to display full time emplyee in the combo box however when I tested the code I this line is executed ` test = conn.prepareStatement("select * FROM Employee WHERE EmployeeType = " + "'" + "Part Time" …

Member Avatar for JamesCherrill
0
160
Member Avatar for jayturner

import java.util.*; public class Node { int costs[][]=new int [4][4]; int mincosts[]=new int [4]; int dest[]=null; ArrayList packets=new ArrayList(); Simulator sim=null; /** *@param args */ public RoutingPacket creatertpkt(int srcid, int destid,int mincosts[]) { RoutingPacket oRPacket =new RoutingPacket(); oRPacket.setSourceid(srcid); oRPacket.setDestid(destid); oRPacket.setMincost(mincosts); return oRPacket; } void rtinit(int srcid,int dest[], int initcosts[][],int initMinCosts[],Simulator …

Member Avatar for JamesCherrill
0
267
Member Avatar for Jjaus

Write a class that accepts a user's hourly rate of pay and the number of hours worked. Display the user's gross pay (gross pay = hours worked * hourly rate), the tax withheld (tax withheld = gross pay * tax rate) and the net pay (net pay = gross pay …

Member Avatar for Jjaus
0
140
Member Avatar for CoilFyzx

Hello I am using jxls quite fine. I'm sort of on my last lap with exporting my data to a file. However all I want to know is, how do I display my collection in the same row please? I've manage to do this downwards in the same column, but …

Member Avatar for CoilFyzx
0
285
Member Avatar for pekemp23

My teamate and i are looking into how to: The application did not work as required. There was a package statement; (-2) Even though you caught the exception, the incorrect donation should not be printed out to the JtextArea. (-2) I would also work on appending to the text area …

Member Avatar for cgeier
0
329
Member Avatar for Rahul47

When we create an object how much memory will be allocated to it ? Is memory allocated for methods too ? If Yes, How ?

Member Avatar for JamesCherrill
0
130
Member Avatar for jrosh

Please any one can guide me how to write a [B] mysql database search[/B][I] in java....[/I] I want to search mysql database for some data in keywords. please help... thnakx

Member Avatar for Sardar_1
0
2K
Member Avatar for aravind326

Hi, I have a java class that is being used by multiple people (from a UI). In the class i have a static HashMap with the userKey as the map key and an arraylist with data pertaining to the user as the value. I am using this kind of like …

Member Avatar for aravind326
0
385
Member Avatar for anand01

I have problem with jinitiator. I am using Oracle ERP forms which runs on Jinitiator.When I access some other java applet application at the same time it runs in the JRE in and works fine. When I pass the same java applet application in ERP through a link , I …

Member Avatar for jwenting
0
188
Member Avatar for wallet123

Im trying to integrate my website with facebook so that users wont have to sign up. By just using their FB accounts, they can automatically be logged in, but im encountering an error: java.lang.NullPointerException at com.fblogin.CallbackServlet.doGet(CallbackServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) …

Member Avatar for jwenting
0
310
Member Avatar for wallet123

I want to connect my website with Facebook. I'd like my user to be able to login to my site without having to sign up. Jut by clicking the facebook logo, I will be able to fetch the data needed like their email, name, age, etc. I used **restFB** but, …

0
131
Member Avatar for CoilFyzx

Hello good day. I am trying to figure out if it is at all possible for me to do but I want to access the area that is outside the JScrollPane's view when my JFrame is resized. Let me explain; I have a LayeredPanewith two layers within a JscrollPane. The …

Member Avatar for CoilFyzx
0
229
Member Avatar for JamesCherrill

This is my 10,000th post in the DaniWeb Java forum. so I hope I won't get an infraction for being off-topic. I just thought this would be the perfect opportunity to thank all the people who have helped to make this such a valuable and rewarding experience for me. I …

Member Avatar for peter_budo
6
236
Member Avatar for LyingInAHammock

How do I replace my android app Google maps radius circle with a blue translucent one as in image also blue marker with blue circle? I can make the circle have a particular outline and fill but it doesn't look anywhere near as nice as the one depicted in the …

Member Avatar for LyingInAHammock
0
816
Member Avatar for rodi406

It compiles and runs fine, but when I run it it never ends. It keeps asking for a second integer. Here's the code. Scanner get = new Scanner ( System.in ); System.out.print( "Please enter first integer: " ); int value = get.nextInt(); int smallest = value; int largest = value; …

Member Avatar for tricket_7
0
174
Member Avatar for tricket_7

I am to create a program which creates multiple threads, has them do work in parallel, and terminates when the last thread is finished, sounds simple right? Here is the curve... I am supposed to create thread objects using scanner input, and I am at a loss When I run …

Member Avatar for tricket_7
0
619
Member Avatar for matthewborgcarr

Hi, I have an application that has the feature to change the users with the click of a button. For the first attempt it works fine; it closes the JFrame and opens the login JFrame. However if the users clicks on the button to change user for the secound time, …

Member Avatar for mKorbel
0
245
Member Avatar for fuchsia555

Hello everyone, I'm about to develope a simple app for mobile and i want your help about how to make a code for sending the order of the selected items by SMS or E-mail to a sepcific cell number or E-mail after selecting the desired items clicking on the button …

Member Avatar for peter_budo
0
134
Member Avatar for sheelap

i have a problem with java.suppose there is any java project either database,or any api how to create A JAR FILE? because i made a project medical stores management in java & access .but i dont know how to create jar file for it from Shel

Member Avatar for rubberman
0
244
Member Avatar for sk8ergirl

I understand how to create log in system in java netbean using sql , but how can I create log out button

Member Avatar for jwenting
0
79
Member Avatar for Doogledude123

Cannot get FXMLLoader to load this fxml. Error: Feb 19, 2014 11:25:01 PM com.github.geodox.goldminer.GoldMiner start SEVERE: null java.lang.NullPointerException: Location is required. at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2825) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2809) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2795) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2782) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2771) at com.github.geodox.goldminer.GoldMiner.start(GoldMiner.java:24) at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319) at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:219) at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:182) at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:179) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76) at com.sun.glass.ui.win.WinApplication._runLoop(Native …

Member Avatar for Doogledude123
0
5K

The End.