36,051 Topics

Member Avatar for
Member Avatar for warren13

I have 7 edit text boxes established as preferences they are workiing correctly and when selected they display their vaue. But I would rather that they display their vaue from the preferences screen if a value has been entered instead of requiring the need to click the preference to open …

Member Avatar for JamesCherrill
0
197
Member Avatar for laguardian

Hey guys! I'm working on this project of mine and I can't seem to get it to work. It keeps saying that I haven't initialized the variables: name, address, email, contactNumber, numberOfVisits. I currently have 3 classes in the package: PagamutanClinic, Clinic, and Patient. Here's my Main: import java.util.Scanner; public …

Member Avatar for JamesCherrill
0
150
Member Avatar for gvenkatesh1989
Member Avatar for JavNoobie

Hi folks, This is my first post on DaniWeb Im trying to build an enhancement to my web app, by including pagination to diplay the results of a query in the jsp. I ve tried using the diplay tag library to implement the same .Before using the display tag library …

Member Avatar for superman1011010
0
423
Member Avatar for DarkLightning7

I am working on a mapping system to support pathfinding over areas that are too large to hold in memory. The problem i have run into is how to load only a small part of the map when its all linked together and then dynamicaly load more of the map …

Member Avatar for JamesCherrill
0
223
Member Avatar for gabriel.miyamoto

Hi I don't really have much experience in programming, but I am trying to make a tool that would kill a repetitive task. I'm creating a small tool box that when I click it in a certain button, it will open AD, CMD with a different privileged account. it would …

0
140
Member Avatar for varun7952

Hi i m getting problem in uploading files to my site i am not expert in java i m novice whenever i trying to upload files via jupload it give me error ClassNotFoundException wjhk.jupload2JUploadApplet [Error Picture](http://postimg.org/image/qt0s56cr3/) some days back it was working fine and its w-script which use jupload to …

Member Avatar for JamesCherrill
0
150
Member Avatar for guy40az

I have a java program that dispays the temperature in digit format ie 87.7F. I would like to make a thermometer using graphics to do this. I have only been using java for 2 weeks now and just wonding if someone could give me pointers on the best way to …

Member Avatar for JamesCherrill
0
265
Member Avatar for CainKilgore

Hi everyone, first time poster so I apologise if I'm not that great. Basically, I am looking into creating a Minecraft Launcher and I cannot for the life of me get this to work correctly. public static String authCode = "cmd javaw.exe -Xmx1G -Djava.library.path=\"%APPDATA%\\.minecraft\\versions\\1.6.2\\1.6.2-natives\" -cp \"%APPDATA%\\.minecraft\\libraries\\net\\sf\\jopt-simple\\jopt-simple\\4.5\\jopt-simple-4.5.jar;%APPDATA%\\.minecraft\\libraries\\com\\paulscode\\codecjorbis\\20101023\\codecjorbis-20101023.jar;%APPDATA%\\.minecraft\\libraries\\com\\paulscode\\codecwav\\20101023\\codecwav-20101023.jar;%APPDATA%\\.minecraft\\libraries\\com\\paulscode\\libraryjavasound\\20101123\\libraryjavasound-20101123.jar;%APPDATA%\\.minecraft\\libraries\\com\\paulscode\\librarylwjglopenal\\20100824\\librarylwjglopenal-20100824.jar;%APPDATA%\\.minecraft\\libraries\\com\\paulscode\\soundsystem\\20120107\\soundsystem-20120107.jar;%APPDATA%\\.minecraft\\libraries\\argo\\argo\\2.25_fixed\\argo-2.25_fixed.jar;%APPDATA%\\.minecraft\\libraries\\org\\bouncycastle\\bcprov-jdk15on\\1.47\\bcprov-jdk15on-1.47.jar;%APPDATA%\\.minecraft\\libraries\\com\\google\\guava\\guava\\14.0\\guava-14.0.jar;%APPDATA%\\.minecraft\\libraries\\org\\apache\\commons\\commons-lang3\\3.1\\commons-lang3-3.1.jar;%APPDATA%\\.minecraft\\libraries\\commons-io\\commons-io\\2.4\\commons-io-2.4.jar;%APPDATA%\\.minecraft\\libraries\\net\\java\\jinput\\jinput\\2.0.5\\jinput-2.0.5.jar;%APPDATA%\\.minecraft\\libraries\\net\\java\\jutils\\jutils\\1.0.0\\jutils-1.0.0.jar;%APPDATA%\\.minecraft\\libraries\\com\\google\\code\\gson\\gson\\2.2.2\\gson-2.2.2.jar;%APPDATA%\\.minecraft\\libraries\\org\\lwjgl\\lwjgl\\lwjgl\\2.9.0\\lwjgl-2.9.0.jar;%APPDATA%\\.minecraft\\libraries\\org\\lwjgl\\lwjgl\\lwjgl_util\\2.9.0\\lwjgl_util-2.9.0.jar;%APPDATA%\\.minecraft\\versions\\1.6.2\\1.6.2.jar\" net.minecraft.client.main.Main --username playername --session …

Member Avatar for JamesCherrill
0
230
Member Avatar for Mr.M

Hi Dw I've created a console application and now I want it to close or teminate straight when I choose exit I've tried the System.Exit(0) but it doesn't close the command screen please help me out. Thanks

Member Avatar for Mr.M
0
217
Member Avatar for mesbahuk

I have a Java code block like following: Vector<NameAddress> route = dialog.getRoute(); for ( Enumeration<NameAddress> e = route.elements(); e.hasMoreElements(); ) { // some more to copy route to another Vector<> } I am trying to convert it in C# and here is my code: List<NameAddress> route = dialog.getRoute(); for ( …

Member Avatar for C#Jaap
0
309
Member Avatar for Louie_Rave

Hello. I uhh... I just want a sample code for the Exceptions: SecurityException and StackOverflowException. I'm still new to handling exceptions. Please, just a sample code that is about those two will do.

Member Avatar for |-|x
0
210
Member Avatar for Zababa

Hey there guys :) I need to create a page (HTML) which contains some static content, and an `iframe`. The `iframe` is used to contain an external page, so I am trying to 'inject' the source of the page into the document element of the` iframe`. You would ask me, …

Member Avatar for asmira
0
251
Member Avatar for Ritesh_4

Hello, I would like to learn android programming, but have no knowledge in java whatsoever. Do I need to go through a java course first before starting with android, or is there a way to start programming directly with the latter?

Member Avatar for DarkLightning7
0
190
Member Avatar for Nandomo

I am trying to decimal format a group of numbers into a 2D array and I keep getting an Error in Netbeans. It says where I have the d.format(0.0); that I need a double and have a String when then input present is 0.0. This is driving me insane and …

Member Avatar for jwenting
0
236
Member Avatar for Samaneh_1

Hi dear users, I need a java fuzzy logic library for writing fuzzy logic code in java and an example of that to how to write that code by it's Library. My environment is Centos 6.4 and without any GUI. How could it be possible? I really need your help. …

Member Avatar for masijade
0
72
Member Avatar for niki.kabra.31

i have a problem in retriving image from mysqldatabase in jsp that when iretrive the image then only the image is display on the page or browser and all other table or data is not displayed because of the image

Member Avatar for JorgeM
0
34
Member Avatar for Petranilla

In Java programming a game like with maze like structure. How do we check collision with wall? Anyone who knows how the wall object work? Many thanks--Petranilla

Member Avatar for Petranilla
0
310
Member Avatar for Neon Tetras

I created several JComboBoxes using a for loop. I want them to reset when i click the reset button. But this doesn't work. These are my codes... import javax.swing.*; import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.event.ItemListener; import java.awt.event.ItemEvent; class TryCombo extends JFrame{ TryCombo(){ super("Trying JComboBox"); setDefaultCloseOperation(EXIT_ON_CLOSE); JButton but = …

Member Avatar for mKorbel
0
1K
Member Avatar for Sanchixx

Hi, I am making a game I added a mouselistener in my game class but when i add a mouse listener in my class to make a custom button it doesn't work, so i had to make a variables mousePressed and variables for the mouse location mX and mY but …

Member Avatar for iamthwee
0
239
Member Avatar for silvercats

usually we can get X,Y coordinates in java applications. I want to get the x,y coorsinates of a given flash file in a jsp page usibg java? how can I do it?

Member Avatar for ryantroop
0
169
Member Avatar for Sci3nc3F1cti0n

Hey guys, I just started learning HTML/Javascript yesterday and I just wanted to mess around a bit. I'm working on a few things dealing with user input but I've come accross a little snag. I want it to take in 3 inputs, do an operation, and then output the answer. …

Member Avatar for Zagga
0
250
Member Avatar for ronaldpaul

Hi, I just popped in on a website named http://n-frames.com/. I would like to know what kind of jquery or css effects they are using in-order to achieve the layering effect on the images while scrolling the page as I would like to use this effect in one of my …

Member Avatar for Zagga
0
186
Member Avatar for evan.winstead.7

Hey! I am trying to learn some LWJGL, and wanted to know the best source to learn from, that could be a youtube channel or a text tutorial, but something with videos is much prefered.

Member Avatar for evan.winstead.7
0
230
Member Avatar for techyworld

Hi am working on jsf, am changing the css file, but when i view it in browser, it does not apply the change. Can i know why am having this issue and how can i resolve it?

Member Avatar for masijade
0
128
Member Avatar for pritaeas

For all people having issues building the right regex: I just came across this nice little helper, which allows you to describe what you want using chained methods. https://github.com/jehna/VerbalExpressions

0
122
Member Avatar for gyno

To some of the you in here who uses Netbeans IDE for Java progaraming language, how do i link my code in Netbeans environment up with HTML file which i want to run as **Applet** in a browser

Member Avatar for iamthwee
0
97
Member Avatar for Jollyboy

hi, want to know how to make grids of an image using java. if posible some1 plz help me providing code to do that. i want the full Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Member Avatar for iamthwee
-2
142
Member Avatar for mesbahuk

In my *Java to C#* Conversion Project, at one point I came to use java's `startsWith(string prefix, int toffset)` method. I used a substring to solve it for C#. Java Code Snippet: String str1 = "one over the coocoo's head"; String str2 = "someone"; System.out.println(str1.startsWith(str2, 4)); C# does not have …

Member Avatar for JoeProgrammer
0
419
Member Avatar for nikolaos

I want to list all files and directories from a start point using recursion. Here is my code. import java.io.File; import java.io.IOException; public class RecursiveWalk { void recursive (File[] allfiles) throws IOException{ for (File file : allfiles) { if (file.isDirectory()) { System.out.print("directory:"); System.out.println(file.getCanonicalPath()); recursive (file.listFiles()); } else { System.out.print(" file:"); …

Member Avatar for JamesCherrill
0
3K
Member Avatar for tanha

Hi, I have been reviewing and reading the docs for the VLCJ but unfortunately could not come to a conclusion of configuring and running it correctly. It is appreciated if someone placing an example, snippet or tutorial of that.

Member Avatar for tanha
0
2K
Member Avatar for kedxu

The setSize() method of a Frame only resizes the frame itself, not the canvas inside. Is there a way to resize a frame based on what size you want the interior to be? I made this image to explain what I'm talking about: I used setSize(500,500); http://oi44.tinypic.com/4uymur.jpg I suppose I …

Member Avatar for kedxu
0
181
Member Avatar for kedxu

If I am given the exact coordinates of three vertices in image-space (as in, the numbers are not integers, but can be rounded to find their location on the screen), how can I determine which pixels are inside the triangle and should be colored? If you look at the diagram …

Member Avatar for kedxu
0
421
Member Avatar for MasterHacker110

I am trying to find a scripting language for some simple tasks etc... I tried python - dont like the whitecpace thing. Ruby - just a weird language. Javascript on the other hand has syntex that I like - C/C++/C#/Java like - and it uses curley braces. But the draw …

0
85
Member Avatar for kedxu

So I have a PrintWriter as a class variable which is created upon initialization. I want to make sure it gets closed when the Applet closes, but overriding the destroy() method doesn't seem to work (a System.out.println inside the method does not appear). 1. should I be doing this in …

Member Avatar for kedxu
0
223
Member Avatar for kedxu

Right now I know that Applets can add any listener with the addMouseListener() method. But what I want to know is if I can make my custom class a mouse listener without having an Applet add it itself.

Member Avatar for kedxu
0
95
Member Avatar for Dennis_1

I know this is gonna be an easy fix, but I can't see it! Why won't this work? import java.util.Scanner; public class Elevator { public boolean doorOpen=false; public int currentFloor = 1; public final int TOP_FLOOR = 5; public final int BOTTOM_FLOOR = 1; public static void main(String args[]) { …

Member Avatar for murali2489
0
135
Member Avatar for arif.lone.92

sir I can able to save java program in the jdk bin that shows me a cammond that you can,t save your programme contact your admannistater on windowes8

Member Avatar for JamesCherrill
0
49
Member Avatar for lena1990

hi all i want to ask you how to connect java to remote ms access in another computer thanks in advance

Member Avatar for lena1990
0
236
Member Avatar for babyani

● Do questionnaire Upon completion, the responses are scored and the total is displayed. The points awarded for the responses are: 1 point for response A, 2 points for response B and 3 points for response C. You may assume that the names entered are unique.

Member Avatar for JamesCherrill
0
212
Member Avatar for cool_zephyr

I have developed a login page which needs to access the database for login information. I have put all the user authentication functions in my DAO class which is a singletone class class DAO { //DAO is a singletone class public boolean authenticateUser(username,password) { //authentication process done here } } …

Member Avatar for cool_zephyr
0
194
Member Avatar for murali2489

Hi All, I am trying to write a code which checks whether the username and password stored in the database matches to the string created locally and displays it in console. The program connects to the database and gets the string from the table space correctly, but the problem is, …

Member Avatar for murali2489
0
289
Member Avatar for Yarra

So I am making a 3D game using Java 8. The question I am to ask will not concern any of the features specific to JAva 8 though. But if any of you have played a shooter game or simply minecraft. How do I mimic the mouse free look behavior …

Member Avatar for JamesCherrill
0
137
Member Avatar for Mr.M

Hi DW I've created a project on NaviCoder for java and when I tryied to export the project I had a problem then I redo my project using the Netbeans and that where I was then able to export or should I say build the jar file which is an …

Member Avatar for JamesCherrill
0
255
Member Avatar for robgeek

Hey everyone, I was attempting to get the lastmodified file from a folder, and to do so I used File.listFiles() method which is returning a null pointer exception even though the folder is not empty. I had this piece of code working about two days ago and I am not …

Member Avatar for sirlink99
0
8K
Member Avatar for murali2489

Hi All, I am new to use of database in Java. I am trying to write a simple java application which connects to my Database and sends some query and retrieves the output. I have downloaded MariaDB and then created a database named iff and created tablespaces which has some …

Member Avatar for murali2489
0
524
Member Avatar for Dardan89

Hi all how are you i need help if any one can help with an Open Source Hotel Managment Prog..

Member Avatar for pritaeas
-2
38
Member Avatar for amrita111

Why to have service when we can create classes,interfaces and can use the property inheritance?

Member Avatar for jwenting
-1
148
Member Avatar for tanha

Hi, I have a png image wihtout background and want this png to be my JFrame where the transparent section must be transparent; I have tried different ways I used the setOpaque(), setOpacity(), ImageIO but no clue. I want only my transparent png as JFrame. Any idea and solution will …

Member Avatar for tanha
0
2K
Member Avatar for mydreamgirl

Is there a way for JSP to get value from id element in a html? Just like what javascript doing document.getElementById.value

Member Avatar for stultuske
0
2K

The End.