32,199 Topics

Member Avatar for
Member Avatar for jbennet

Im storing prices in pennies e.g 399 but i want it to be displayed e.g £3.99p how to do ? i used integers?

Member Avatar for BestJewSinceJC
0
93
Member Avatar for mashimaro

Hey, I'd like to write an application (in java, ofc) that would be able to connect to an LDAP server, with authentication, using sessions. Are there any libraries I could use to do so out there? Open source ones would be best, and the rule KISS is a priority ^.-

Member Avatar for mashimaro
0
135
Member Avatar for jdbarry

I am need a little guidance here as to how I am to go about using a static method to read data from a text file. I know how to use a static method to write data to a text file, now I am wondering how to use a static …

Member Avatar for BestJewSinceJC
0
174
Member Avatar for BestJewSinceJC

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Java Sun's site is down right now so I can't check but I'm guessing this is an old method since according to Eclipse, the method doesn't exist anymore. So my question is, are there any other ways to do the same thing?

Member Avatar for BestJewSinceJC
0
110
Member Avatar for h3xc0de

I am trying to implement a live support chat application where users can chat with customer service for support or general information. I'm having problems trying to figure out how to go about implementing it. I was thinking the best way would to be to use servlets to pass the …

0
70
Member Avatar for milhouse79

Okay... public void reverse() { Object temp = new Object[INITIAL_CAPACITY]; for(int i = 0; i < size; ++i) { for(int j = size; j > 0; --j) { temp = data[i]; data[i] = data[j]; data[j] = temp; } } } this code does not reverse anything...I'm losing my mind here. …

Member Avatar for stultuske
0
80
Member Avatar for yashbhalekar

Hi All, We are working on ‘Siebel on Demand’ (software as a service) CRM. We are using web service to communicate. We have WSDL files and we generated the code using Axis framework that comes along with Eclipse. We are able to login and logoff to the CRM through web …

0
38
Member Avatar for dbwalters

Hello, I was hoping that someone might be able to help me with this program: [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.text.*; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.FileNotFoundException; public class CustomerInfo extends JFrame implements ActionListener { //construct components JTextPane textPane = new JTextPane(); //initialize data in …

Member Avatar for hrdzdier
0
821
Member Avatar for ppp83

Im new to this forum and the programming language that im currently using is java. And i think i might need some help, advice here, and hope this is the correct place for me to post my question. If certain question i ask are not supposed to be posted here, …

Member Avatar for danielernesto
0
135
Member Avatar for britto

im creating an IDE for jswing what i need is the user must drag and drop swing controls ex: (TextField, JList ...) into a tab in tabbed pane dynamically hw to do this....

Member Avatar for Ezzaral
0
58
Member Avatar for abhi_elementx

hello folks. I m trying to call an exe from java code. [ICODE] public void MyClass{ public void run(){ Runtime rt = new Runtime ().getruntime(); Process p = rt.exec("c:\mylexicalanalyser.exe < SampleInput.txt "); // } . . p s v m(){ new MyClass(); } } [/ICODE] mylexicalanalyser.exe was created by flex …

Member Avatar for abhi_elementx
0
144
Member Avatar for vikas_java

hi, I get above exception for the following code. [CODE]public void actionPerformed(ActionEvent e) { try { JComboBox Oone =(JComboBox)e.getSource(); String item = (String) Oone.getSelectedItem(); //lbl.setText(item); System.out.println("selected item is:"+item); String command = e.getActionCommand(); if(command.equals("Cancel")) { System.exit(0); } if(command.equals("Next")) { // frame.remove(tab); check chk = new check(item); //frame.setContentPane(tst1); frame.setLocation(250,150); frame.setSize(500,200); frame.setVisible(true); } …

Member Avatar for stephen84s
0
123
Member Avatar for shahab.burki

Hi, We no that their no support for Pointer in Java as in C and C++. So how can we print the exact location of a varaiable in java? Shahab

Member Avatar for stephen84s
1
515
Member Avatar for jdbarry

I am trying to write a program that calculates the surface gravity on each planet in our solar system. I have the printing of the results assigned to a static method. However, I have a problem. There are two for statements I am using in this program. The last for …

Member Avatar for stephen84s
0
105
Member Avatar for ppp83

I use maven to build my project, and i tried to modify an existing pom.xml to compile my project, seems like it's not really compiling as it detects that no sources to compile. As a basic start of learning pom.xml, where can i start from?

Member Avatar for stephen84s
0
150
Member Avatar for ppp83

Need some advice, help and guidelines here regarding this topic. How can i use the jar utility to unpack the jar/war file so that i can inspect one particular package and return a list of the classes within that particular package? I need to progress further from that point onwards …

Member Avatar for stephen84s
0
428
Member Avatar for hidash_in

[B][I]Hi all, i have to download a file from a server automatically without any manual interaction. I dont know whether it is possible. Any one of you know the solution for this problem please send me the code. Thanks Hidash[/I][/B]

Member Avatar for stultuske
0
118
Member Avatar for nanna

hi, iam trying to create phone directory as a seperate Jframe. there is a button in the main JFrame that leads to the seperate Jframe. the seperate Jframe contains JList which includes names and numbers. when click on any name from the list, this name with the number should appear …

Member Avatar for verruckt24
0
220
Member Avatar for curtissumpter

Hi People, I am trying to run this file but I am having trouble getting the program to incorporate the gif file that I need. Here's the program. // Demonstrating JDesktopPane import javax.swing.*; import java.awt.event.*; import java.awt.*; public class DesktopTest extends JFrame { public DesktopTest() { super("Using a JDesktopPane"); JMenuBar …

Member Avatar for danielernesto
0
871
Member Avatar for fran121

hello ive already written the scoreboard and tictactoe now i need write the GameUI.java this involves using collections framework, however in which I'm struggling in. If anyone could start me off, help me out, what so ever would be very appreciative. Fran

Member Avatar for BestJewSinceJC
0
77
Member Avatar for frozen_death

can un help me to create a program that used panel and frames or plz create a simple sample program that used panel and frames so i can study on it.thnxz

Member Avatar for BestJewSinceJC
0
27
Member Avatar for sciwizeh

I have the eclipse for Java developers, and I have the MinGW that's distributed with Dev-C++. I just want to know what downloads need to get from the update manager of eclipse, I also don't know how i set it up to use the compiler that came with Dev-C++. I …

0
79
Member Avatar for JMChurch25

Hello, almost done with the Sudoku Solver but dealing with a couple last glitches in the solve method that supposed to use a backtracking algorithm. It is printing out some weird values and outputs. I've got the program printing out the unsolved puzzle fine but the "solved" puzzle is nothing …

0
63
Member Avatar for ghaith

Hey, I'm working on a project where i have to visualize an algorithm, i have to generate graphs in the application, and it must be using Gxl, i searched for manuals on gxl and java, i found jgraph, but I'm actually not sure where to start on that, let's say …

0
65
Member Avatar for milgo

hi,im new in java & i really dont have the basic concepts of object oriented programming.please help me with the code for application class that automatically rejects anyone above the age of 40.kindly include comments so that i can understand better.thanks

Member Avatar for Ezzaral
-1
121
Member Avatar for BrianK123

This is probably just a stupid mistake but I can't figure it out. I have this code: [CODE]TextField passGet=new TextField(10); passGet.setEchoChar('*');[/CODE] and when I try to compile, I get and <identifier> expected error. Anyone know why?

Member Avatar for BrianK123
0
987
Member Avatar for Chaster

Yellow, From my application - for some reason - I am able to send messages up to only 64k. I've been wondering if it is possible to split an InputStream into partitions of 64k, and then, on client side to join them again. Is this possible? Have you ever done …

Member Avatar for BestJewSinceJC
0
82
Member Avatar for Johannady2

number = 10; sum = 0; for (var i=1; i<= number; i++) { sum = sum + number; } document.write("sum = " + sum); number = 10; for (var i=number; i > 0; i--) { if ( i%2 == 1) document.write(i); } product = 1; number = 5; for (var …

Member Avatar for verruckt24
0
113
Member Avatar for viber101

hi I would like to know if it is possible to display the line number in a JTextArea? I design an editor using NB ide and I'd like to offer the same features like Text Editor that show the number of EACH line at the left side of the text. …

Member Avatar for Ezzaral
0
62
Member Avatar for BrianK123

I was writing an applet before and was displaying information in a JOptionPane. Useing \n, I was able to make the information display multilined like this: [CODE]Name1 Grade1 Name2 Grade2 etc.[/CODE] I unfortunately had to change my code from an applet to a JFrame and subsiquently my Labels to JLabels. …

Member Avatar for BrianK123
0
189

The End.