35,619 Topics

Member Avatar for
Member Avatar for cproger

This might sound like it's very simple but I tried many things and it doesn't work. When the user clicks the back button on a window it's supposed to also dispose another window. I've tried using static. if(Tester.backJButton.isEnabled()) { this.dispose(); } Tester is the name of the class holding the …

Member Avatar for cproger
0
237
Member Avatar for Mark_54

Hi there, I was given a little exercise to complete for a graduate position. I have only done a HDip in Computer Science, so that's only about 8 months of Java stuck in with a whole other pile of stuf.. long story short.. I've only get the basics of coding, …

Member Avatar for JamesCherrill
0
324
Member Avatar for Norman_2

implement a full class Car that has teh following characteristics: brandName, PriceNew, Colour and Odometer. The class should have a constructor that prompts the user to enter the characteristics above. A method getPriceAfterUse() which return the price of the car after being used according to the following formula: a.car price …

Member Avatar for stultuske
-2
218
Member Avatar for Chris_38

Can someone give me some programming ideas to keep my knowledge up-to-date? I received a masters degree in computer science back in December and been job searching since then. I want to tell an employer something.

Member Avatar for rproffitt
0
291
Member Avatar for Violet_82

Hi, I'm thinking to upgrade from java sdk 7 to 8 (JamesCherrill will be pleased,lol!) and I was just wondering if there is anything I need to be careful with, especially in eclipse. I will start first with Windows, and then do the same thing in Ubuntu. My eclipse seems …

Member Avatar for JamesCherrill
0
300
Member Avatar for Isky

Hi, I'm new to this Java world, and just can't figure out this problem. After I use nextInt or nextDouble, and try to use nextLine, it won't work unless I put nextLine twice. What's the problem there, and what would be the good way to handle this? Just gave a …

Member Avatar for stultuske
0
21K
Member Avatar for Mark_54

Hi there, terribly confused how to get going with a career in programming. I have basic knowledge of Java programming principles, and I understand to some degree the object orientated aspect of the language also. My question is where to go now? Or what else to learn? Here are some …

Member Avatar for Reverend Jim
0
441
Member Avatar for Clayton_2

An auto dealership has 50 cars and 50 customers who all show up simultaneously when the dealership opens.. All cars are off when the dealership doors open. As the customers enter, the first customer, denoted C1, starts every car. Then the second customer, C2, beginning with the second car, denoted …

Member Avatar for AssertNull
-4
202
Member Avatar for Sergio_4

Hello All, I am unable to import javax.sound.sampled in a mobile app I have been playing with. I am currently using AndroidStudio and I do have the path pointing to the JDK not the JRE. I was for a while able to import them when I included the jar files …

Member Avatar for rproffitt
0
532
Member Avatar for geoffy0404

Not sure why but the chronometer counter will start as soon as the application starts without me clicking the button. Does anyone see what the issue would be? package com.example.android.courtcounter; import android.os.SystemClock; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.widget.TextView; import android.widget.Chronometer; public class MainActivity extends …

Member Avatar for stultuske
0
761
Member Avatar for Kajal_3

Can anyone help me with this? You have been hired by the Wayne County Road Commission to write a Java console application that dispatches patching trucks on county roads. It reads truck and route data from files and stores them in objects. It then reads an order file to dispatch …

Member Avatar for JamesCherrill
-1
343
Member Avatar for Yuna_1

Hello I am almost finished with my assignment but I just need it to do the math correctly and I need help!!! I can easily do the problem on paper just fine however I can't get Netbeans to create the right answer. Here is the problem I need it to …

Member Avatar for JamesCherrill
0
342
Member Avatar for Saboor880

Hello to all! I know well how to access database and its tables from sql server in Netbeans, But know I need to access a report from sql server in Netbeans. For example if I have a table named "MyTable" in sql server 2008 and then I ran a query …

Member Avatar for stultuske
0
216
Member Avatar for Hari_13

I am unabe to send email. The page is hanging and it is not displaying any error. Please help me fix the issue thank you in advance.

Member Avatar for JamesCherrill
0
118
Member Avatar for Michael_56

I am fairly new to java using Spring boot and maven. I was assigned a task to get the revision number and timestamp for the current revision from the project and put them into an app.properties file . Most of the demonstrations I have found displayed the templates as such, …

Member Avatar for stultuske
0
340
Member Avatar for Violet_82

Hi guys, I have a question about error handling. Still working on the addition application and now that I've learned what are the correct exceptions to handle I'm not sure what to do when I've established that the my inputs are all valid and print my result. Let's have a …

Member Avatar for Gribouillis
0
418
Member Avatar for Violet_82

HI guys, I'm really new to SVN and today I've installed tortoise as I'm working in windows at the moment and I'm following this tutorial https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-qs-guide.html. So, I have a java project in Eclipse: I have created a local repository folder on my machine and imported a project in it. …

Member Avatar for Violet_82
0
290
Member Avatar for Violet_82

Chaps, I wonder if you can give me a hand with this. Here's the brief: "Create a program that draws 10 random filled shapes in random colors, position and sizes. Method paintcomponent should contain a loop that iterates 10 times. In each iteration, the loop should determine whether to draw …

Member Avatar for Verse_1
3
5K
Member Avatar for Josh_2

Hello all I have a chat room application where clients connect to server and can chat between each other, I am also trying to add a feature where a client can request a file from the server sucha s an image sound file or video I am trying to convert …

Member Avatar for Josh_2
0
1K
Member Avatar for Rach!

i Am new to selenium webdriver and I want to automate a webpage related to my project. I am currently working on login page, however I facing problem with the login button which I am confused which locator to use. The login button is below: a href="javascript:LoginSubmit('Log In')"> img border="0" …

0
123
Member Avatar for Link_1

![Untitled.png](/attachments/large/4/9ac3fb0f01e4139b31b0d2937bdb0d02.png "align-center") Plesae take a look at the image attached. I have created a maven project by the following steps: 1. open eclipse EE 2. file > new > pther > maven project 3. click on 'create a simple project' checkbox 4. click on 'use defualt workspace location' checkbox > …

0
168
Member Avatar for Violet_82

Hi guys, I have a simple application which allows users to input a divisor, a divident and then calculates the quotient. I'm using vaadin as framework but I don't think that matters. So I've been thinking about the exceptions that can occurr and these are the ones i have identified: …

Member Avatar for JamesCherrill
0
405
Member Avatar for Saurabh_13

THE CODE BELOW IS FOR SAVING FORM DATA FROM HTML FORM TO A TEXT FILE IN THE LOCAL COMPUTER. BUT, THE TEXT I AM GETTING IN THE TEXT FILE IS ALWAYS IN A SINGLE LINE AND I CAN'T ORGANIZE IT. THE CODE BEING USED IS AS BELOW. <!DOCTYPE html> <html> …

Member Avatar for stultuske
0
488
Member Avatar for Altjen_1

Hi daniweb community, this sounds really weird question but I'm having a problem finding a page/portal. has been about 2 days and I've been searching literally for more than 30 hours. From the desperation I am asking any of u if they know it. Inside microsoft page, or microsoft azure. …

Member Avatar for AssertNull
0
203
Member Avatar for Judi Almed

Hi! Can I ask for help, please? How can I pass variables especially array variables and values from a class to other class?

Member Avatar for JamesCherrill
0
81
Member Avatar for prashant_savadi

Java code to get windows service start time ? Like how we get using Process Explorer. Thanks in Advance! PFL for Screen Shot: https://drive.google.com/file/d/0B5KXd3eMbanKckt0YXZCTERWU2c/view?usp=sharing

Member Avatar for rproffitt
0
64
Member Avatar for asifalizaman

hi!guys pay some attention there thanks can any one tell be what is the difference b/t java and java script.. According to my point of view java is programing language that used for the application development..but i have a little knowledge about java script i think it is client side …

Member Avatar for _1_18
0
777
Member Avatar for hhappak

Hello, I am facing a problem I cant seem to find an efficient solution for. My application is supposed to parse a text file while another process is continuously adding to it. I have tried scanner and inputstream but both seem to stop once they hit the end of the …

Member Avatar for rproffitt
0
5K
Member Avatar for Kriti_1

Hello everyone! I have been working on my school project and I have encountered problem linking jTable with a table in the sql server.Can anyone please help me regarding it.Please help me with the code on how to link the the table.

Member Avatar for JamesCherrill
0
1K
Member Avatar for _1_24

Create a payroll program for 5 part timers for 1 month let the user program enter the name of 5 employee and the No. of hours per week. Based on the rank,calculate and display Net Salary based on the ff: Rank Rate per hour Instructor I Php 172 Instructor II …

Member Avatar for happygeek
0
185
Member Avatar for Judi Almed

Hi! I'm a beginner in Java can you share an answer for this assignment since I already been doing this for a week and I don't know how to answer. Create a Student class with those attributes: 1. firstName 2. lastName 3. grades (it contains grades between 0 and 10) …

Member Avatar for Judi Almed
0
212
Member Avatar for Hamis_3

Hi guys I need a help here, I’m trying to use Ajax to update the column of the table in the database with combobox without a submit button, by the way it update the column finely but unfortunately the column data is erased to **0** when a webpage is refreshed. …

Member Avatar for grant.baker
0
305
Member Avatar for nitin1

Hi, I have one function (in a library I can't change the code) which takes a key and returns a Object. This code is written in java. I am calling this function from cpp code. I am accepting the result as jobject. 1. Added key as "key1" & value as …

Member Avatar for JamesCherrill
0
2K
Member Avatar for faiza_4

HI all, I'm stuck in a code where i cannot read the database value in jsp textarea. Value stored in database like "address 1 address 2" and cannot be loaded on jsp page. Plz help.

Member Avatar for faiza_4
0
205
Member Avatar for Shellie_1

I really want to learn Java but I have no idea how to study it. I just keep reading the books yet have no idea how to program. :(

Member Avatar for Zycog
0
501
Member Avatar for ganeshhsk

The problem that im facing is, the below code is working correctly and retrieve the pdf format files correctly and displaying it in the iframe. but it is only working in eclipse internal browser but not in firefox or internet explorer. what will be the reason for this.... Source code: …

Member Avatar for Vivek_18
0
2K
Member Avatar for beanboy

hi, The jsp page has multiple check boxes (retrieved from DB),.... [CODE] <input type="checkbox" name="selecttype" value="<%=rs2.getString("description") %>"/> [/CODE] I've read these values in to servlet page using [CODE] String[] selecttype=request.getParameterValues("selecttype"); [/CODE] the 'selecttype' now contains only selected checkbox values. but i want to retrieve values of unchecked checkboxes. Pls help …

Member Avatar for vk
0
4K
Member Avatar for Tre Sivileo

Hey new to JDBC SQL DERBY and Java so I don't know why but my Jtable only shows the columns. Here are my codes for my LeaderboardDAO class. public class LeaderboardDAO extends Dao { private static final Logger LOG = LogManager.getLogger(PlayerDAO.class); public static final String TABLE_NAME = "leaderboard"; private static …

Member Avatar for Tre Sivileo
0
371
Member Avatar for newbee_jv

Hello everyone, I am trying to show an animated spinwheel image when I am making a servlet call, and hiding it, once the call comes back in my JS method. The following code displays the image alright, but fails to hide it, once the call comes back. JSP <div id="spin" …

Member Avatar for hericles
0
218
Member Avatar for Pardeep_1

Hi, How to programming in java through make the web video chatting application? Please tell me about this knowledge and in which are require the skills.

Member Avatar for JamesCherrill
0
42
Member Avatar for nadiam

Hello. Im doing some practice questions and Im kinda stuck. So basically I have three Jbuttons: "Menu", "Left" and "Right", a JTextField : "tDisplay" and an array : status. code (dummy code for example): String[] status = {"hello","goodbye","goodnight","goodmorning"}; what needs to happen is when Menu is clicked Hello is displayed …

Member Avatar for JamesCherrill
0
424
Member Avatar for sup_1

Hi My code is giving me a red line under '.createStatement()' and I really don't know why and how to fix it. @Override protected String doInBackground(String... params) { if(userid.trim().equals("")|| password.trim().equals("")) z = "Please enter User Id and Password"; else { try { connection con = (connection) connectionClass.CONN(); if (con == …

Member Avatar for JamesCherrill
0
1K
Member Avatar for nitin1

Hi, I have been working on JNI. I have one doubt. When I call any native method from android activity (Java code), then we get jclass object from jobject instance we get in the native method as a parameter. Why do we need it actually? Here is a snippet from …

0
182
Member Avatar for makaijohn9

I want to build apps using play framework. I have looked on for [play framework for Java](https://www.eduonix.com/courses/Web-Development/learn-to-build-apps-using-play-framework?coupon_code=offer10) giving guide to build apps. If you are having some additional resources, pls share.

Member Avatar for gentlemedia
0
636
Member Avatar for BabaRoro

I would like to delete a binding group from my java code, Netbeans does not allow me to do it.I try to do this by right click >Refactor > Safely delete , but a warning appears and the group is not removed. How do I go about deleting this?

Member Avatar for stultuske
0
106
Member Avatar for Alex_47

Hi, I have problem I can't add to the JTable new row (public void addRow(ArrayList<Object> newRow)) from the other class with action of the button Main.java import com.sun.javaws.Globals; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import javax.swing.event.TableModelEvent; import javax.swing.table.AbstractTableModel; import javax.xml.bind.annotation.XmlElementDecl; public class …

Member Avatar for zaraki
0
257
Member Avatar for zaraki

Anyone here know a good java library for XADES signing? Tried my luck with Xades4j, but that didn't go anywhere, couldn't find any API for that. Please provide code examples if you can.

0
135
Member Avatar for Violet_82

Hi guys, I wonder if you can help. As I've started as a programmer, I've been told I have to practice OO a bit more. I've done the theory, but I think I will have to take another look at it. , Above all though, I have to do exercises. …

Member Avatar for AssertNull
1
613
Member Avatar for Violet_82

I'd like to start from the basics if I may please. I've read a few tutorial here and there and I've just created a test application with probably the simplest RPC calls you can possibly have (basically I want to use the RPC call to call a method to print …

0
178
Member Avatar for vishalsingh1080

I want to learn java for competitive programming . I'm actually aware of all the great books on java like thinking in java , effective java etc. But those books are very detailed . i want to learn enough for competitive programming without going into too much of unnecessary details …

Member Avatar for AssertNull
0
734

The End.