32,204 Topics

Member Avatar for
Member Avatar for AnkitKumar

class A { int add() {} } class B extends A { int add() {} } class C extends B { i want to call here A's class method add using A a=(A)this; t.add(); it is possible or not } class D { C c=new C(); }

Member Avatar for masijade
0
61
Member Avatar for mipatel

i dont know how to get the image and how to store the image in the database plzz give me the complete example so i can complete my project plzz help me my project external submission date is near plzzz plzzz help me anyone

Member Avatar for peter_budo
0
183
Member Avatar for private_class_J

[code]textPane = new JTextPane(); textPane.setBounds(337, 33, 290, 198); textPane.setBackground(Color.LIGHT_GRAY); textPane.setEditable(false); textPane.setLayout(new GridLayout()); JScrollPane scrollPane = new JScrollPane(textPane); scrollPane.setBounds(337, 33, 290, 198); add(scrollPane); searchButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { List<MainManagement> sList = new ArrayList<MainManagement>(); MainMngDao mmd = new MainMngDao(); sList = mmd.search(); for(int i = 0; i < sList.size(); …

Member Avatar for mKorbel
0
109
Member Avatar for liphoso

Hw do i reverse the mod function. That is: 6 mod 2 is 0. Nw hvn my result 0, dnt knw wat 2 is cald in dis case bt i got it as wel. Hw do i get bak to 6. 6%2 = 0. Hw do i reverse dat. I …

Member Avatar for masijade
0
3K
Member Avatar for dante5458
Member Avatar for omar mazen
0
253
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
326
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
231
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
918
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

The End.