32,199 Topics

Member Avatar for
Member Avatar for sam.udo

i'm designing an application as a project work in my school but i'm hooked,i need help on how to upload a picture from a folder or directory via a JButton,though i can do that with PHP but not with java....THANKS

Member Avatar for NormR1
0
66
Member Avatar for makmuhefe

Hello, Im trying to write a program which is computing surface area of a 3D geometry by using Newell Methods. Geometry data should be reading from a text file. The lines which has 3 columns point out coordinates of geometry's vertices. The lines which has 2 columns point out connectivities …

Member Avatar for makmuhefe
0
236
Member Avatar for mipatel

i want insert and retrieve image from the database using jsp i see many example but in every example gives default path like ("c:image.jpg") but i want to insert image using <s:file> tag in struts2.0 in database so plzz help me i have exam in few days and i want …

0
59
Member Avatar for AnkitKumar

i want to call there A's class constructor using "super" keyword how it is possible help me plz.....[code]class A {} class B extends A {} class C extends B { i want to call here A's class constructor using "super" keyword how it is possible help me plz..... } class …

Member Avatar for stultuske
0
324
Member Avatar for kubiak

`private static final Font FNT_GIVEN = new Font("SanSerif", Font.BOLD, 20);` I want to put the color for this font for example red, can someone help me??? I am working in awt.

Member Avatar for kubiak
0
93
Member Avatar for CrazyPixel

Hey guys, Here's my problem: I developed some code that converts binary to characters and characters to binary. At first all went well (by first I mean on the good ol' console), but when i tried implementing a GUI, some weird stuff came up. When I try converting characters (strings …

Member Avatar for NormR1
0
159
Member Avatar for Krazykado

Hello, I am having a problem putting this Array's output in a single GUI window. When I receive the output it just shows the grades in individual GUI windows (IE Erik 98 [OK], Fred 76 [OK], etc). If I put the output outside the loop then it doesn't recognize grade[i]. …

Member Avatar for JamesCherrill
0
133
Member Avatar for persianprez

Hi guys, I am in desperate need of help. I'm not exactly sure how to fix this or how to pass contentpanes correctly. Here is my code for gameboard.java: [CODE]import javax.swing.*; public class GameBoard implements ActionListener { private int[][] winSlots = new int[][] { {0, 1, 2}, {3, 4, 5}, …

Member Avatar for JamesCherrill
0
136
Member Avatar for stephen lynch

hi everyone where did i go wrong with the {} please help. import javax.swing.JFrame; // import JFrame class import javax.swing.JLabel; // import JLabel class import javax.swing.JPanel; // import JPanel class import java.awt.Font; // import awt Font class import javax.swing.border.Border; // import Border interface import javax.swing.BorderFactory; // import BorderFactory class import …

Member Avatar for Dxpat4real
0
226
Member Avatar for tultul

hello everyone! i need to create setup for my java swing desktop application. I have searched in google and found a software to create a setup file. it is called INNO SETUP. But i tried to use it and but no any succeess. please help me in this regard. please …

Member Avatar for JamesCherrill
0
229
Member Avatar for liphoso

I expected the program to update the original array but it seems to update the array that has been sorted. i tried to copy array but it does not seem to help me. how do i make sure sure that the array that is updated is the original array. Desired …

Member Avatar for jon.kiparsky
0
169
Member Avatar for Diogo Martinho

Hello, I am currently trying to work on a project, however I will not ask for any sort of Coding since I want to implement that myself. I am working on a project in which I deal with various contracts and I have to [B]keep updating the total price of …

Member Avatar for JamesCherrill
0
105
Member Avatar for alabn22

Hi, I`ve just started working on my diploma thesis project which is "building a door access control system". Mainly it will work like this: there will be a java server, a database and clients(which will simulate the access cards at the doors) Since i don`t have the possibility to use …

Member Avatar for alabn22
1
127
Member Avatar for Dean_Grobler

Hey there, I'm stuck in a rut at the moment trying to figure something out. I have a class, that has 4 methods. method1(), method2(), method3() and whatMethod()... whatMethod() accepts a String and then decides what method to execute based on the received String. Say the String that was sent …

Member Avatar for JamesCherrill
0
288
Member Avatar for NPDA

String ipAddress = new String (pktIn.getData(),0,pktIn.getLength()); what the mean of this sentence??

Member Avatar for NPDA
0
87
Member Avatar for tultul

Hi..! i just started a new thread to draw attention. I asked earlier about how to make a trial period software in this forum and the link is.... [url]http://www.daniweb.com/software-development/java/threads/363496/1557768#post1557768[/url] i found the solution of using Rampart, but i have to purchase it to fully use it. Now can we use …

Member Avatar for tultul
0
139
Member Avatar for butz17

Hi guys! i need some help with my program and i cant determine what to do next...i'm making a program that will output the longest word in a sentence.. here is my code... [CODE] import java.util.Scanner; class LongestWord4 { static Scanner console = new Scanner(System.in); public static void main(String args[]) …

Member Avatar for butz17
0
2K
Member Avatar for jackmaverick1

Hi! I need to know how to make global object from a local place like a function. And of course, they need to have unique names each time the function is run Could I somehow pass the a String parameter of the function to the name of the new object? …

Member Avatar for jackmaverick1
0
221
Member Avatar for newbie14

Dear All, Below is my java codes. Currently the codes gets data from gps devices. The problem now if you notice is that I have to send twice the acknowledgement message that is w.write("$PA\n"); w.flush(); once in line 56 and 57 and once more in 85 and 86 then only …

Member Avatar for NormR1
0
178
Member Avatar for sirlink99

I have this part of my code. I have a JLabel and a JButton that are in a panel. The I place that panel into another panel that has a border layout and I set the panel containing the label and button to be "NORTH", but the JLabel does not …

Member Avatar for Ezzaral
0
916
Member Avatar for muloki

hi I'm writing a small game and need to pass an image into an ArrayList. The Image and bounds are set in Attacker Class with an ArrayList partially constructed in my GameScrn Class posted below. Have spent 2 days on this one issue and failing badly...guessing as usual, im missing …

Member Avatar for mKorbel
0
2K
Member Avatar for Princess90

What purpose does the main method serve? What code should you, and should you not, put in the main method? Brief description of DIP , Factory method pattern and OCP in java terms.

Member Avatar for Ezzaral
-2
121
Member Avatar for gingerfish

how to find out whether certain elements in an array are equal to one another? for this array: [icode]int array[] = {0, 1, 0, 0, 2, 0, 0, 3, 0, 1};[/icode] i wanna know if elements under the indexes 0, 1, and 9 are same numbers well the easy way …

Member Avatar for NormR1
0
210
Member Avatar for M!ss Takishima

Hello, I make a program loop..but it doesn't work as i want ><" ! this is the OUTPUT -look careful, please- : [CODE]Welcome to our miniCalculator if you want to use add, enter add if you want to use subtraction, enter sub if you want to use division, enter div …

Member Avatar for M!ss Takishima
0
175
Member Avatar for Princess90

his is my java assignment. I really need help with it. It is basicallY a Cyber Pet program where in you make the use of a GUI. Here is the file that you can download the whole question from. [url]http://www.mediafire.com/?gfw9c16tubdlf[/url] You gotta have 2 packages : One for the GUI …

Member Avatar for NormR1
0
138
Member Avatar for PRANOTI_N

Hello, I am new to java. I want to display the database records in JComboBox. I have 2 combo boxes. say color and object,whenever i'll select any color from combo box, next combo box should display the objects of that color. I have write one code for it, I use …

Member Avatar for NormR1
0
118
Member Avatar for susheelsundar

[I]Hi, Sorry for coming back again and adv thanks for guidance My tutor gave me a assignment, couple of days before he taught me the work flow of java in eclipse, i am getting through it and i was asked to use constructors for the arithmetic operations as methods in …

Member Avatar for yangtao
0
3K
Member Avatar for solomon_13000

Why is the output 10 and not 9?. According to my understanding the count value is assign to b. Then the count value increment. Hence the output should be 9 instead of 10. However in this case the output is 10. Why?. [CODE] package com.nowhere.blogger.core.junit; public class Bunnies { static …

Member Avatar for AnkitKumar
0
207
Member Avatar for kesh1000

Hi All, I was wondering if any of you would know of how can i change the interface of a java program to a web based interface using html5. I know i could do this easily using jsp/java.net but my requirement states to change the java desktop program application interface …

Member Avatar for mKorbel
0
202
Member Avatar for Tellalca

Hey; I am following CoreJava and came to Event Handling chapter. I am trying to show a popup menu when the red button is clicked, but not works. Background color changes but no popup menu is shown. What is the problem? [CODE]/* * To change this template, choose Tools | …

Member Avatar for Tellalca
0
92

The End.