32,199 Topics
| |
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? | |
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 ^.- | |
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 … | |
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? | |
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 … | |
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. … | |
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 … | |
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 … | |
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, … | |
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.... | |
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 … | |
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); } … | |
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 | |
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 … | |
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? | |
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 … | |
[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] | |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
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 … | |
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 … | |
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 | |
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? | |
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 … | |
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 … | |
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. … | |
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. … |
The End.