32,204 Topics

Member Avatar for
Member Avatar for DJ-DOO

Hi, I'm hoping someone out there can help me, I am trying to create a basic application that transmits GPS co ordinates of the device to a server. I am a complete noobie to socket programming (well, I covered the bare basics in college this year). As a stepping stone, …

Member Avatar for peter_budo
0
2K
Member Avatar for rose_anne

Hello, Me very new to java prgmng and got to redesign a C proj in java. Might be very insane question but not for me. My c poject has a file, called headerfile.h and the structure looks like this #define ID_File1 0x6F01 #define ID_File2 0x6F02 ... .. likewise all constants …

Member Avatar for rose_anne
0
230
Member Avatar for zlloyd1

I have a program that creates a GUI with three text fields in it, and two of these fields is supposed to accept a numeric value. I want to know how to get the numeric entries and store them in a variable for further calculations please. I know how to …

Member Avatar for bguild
0
188
Member Avatar for wooof21

requirement: Design, Implement and test the Invoice class An Invoice class groups InvoiceItems into a single object. Each Invoice has a unique serial number:the first Invoice has serial number 1, the second has serial number 2, etc. (Hint: implementing this will require a static variable.) A newly created invoice will …

Member Avatar for stultuske
0
190
Member Avatar for kamil555

I have a project. the project is: In the game of craps, a pass line bet proceeds as follows. Two six-sided dice are rolled; the first roll of the dice in a craps round is called the "come out roll." A come out roll of 7 or 11 automatically wins, …

Member Avatar for JamesCherrill
0
531
Member Avatar for jalpesh_007

I am going to start learning about Spring framework. Please tell me from where i can get good tutorial for learning same with example. please send me(Suggest me) links or material regading Spring, so i can learn it in better way. Thanks a lot.

Member Avatar for jalpesh_007
1
167
Member Avatar for gudads

Please note I AM not a programmer, i run my own company. trying to built calculator by myself. I have software background but someone helped me write this code. Its working but not showing the calculations. If someone can reply me with solution or new code that will be great. …

Member Avatar for code739
0
116
Member Avatar for dannyboy.rizaldo

int d=num%10; rev= (rev*10)+d; num=num/10; //Why is it reverse? please explain.

Member Avatar for JamesCherrill
0
26
Member Avatar for 03hasnam

Here is a section of code from a MODEL class of the MVC Framework: public TableModel getTableData() throws SQLException { try { String sql = "SELECT date as 'Date',eventName as 'Name', time as 'Start Time' FROM Event"; pst = conn.prepareStatement(sql); rs = pst.executeQuery(); TableModel model = (DbUtils.resultSetToTableModel(rs)); return model; } …

Member Avatar for JamesCherrill
0
287
Member Avatar for farah90

Heloo, could you please help me? its really urgent as this is my project. In this code, i want to total up number of people who are pending in this category. Then link it to another page. When going to the link page, it will retrieve the name of the …

Member Avatar for JamesCherrill
-1
119
Member Avatar for Jimbo_Dew

Is this possible? I've tried Runtime.getRuntime().exec("javaw.exe <COMMAND_ARGS> \"" + wu.getCurrentUserDesktopPath() + "/file.txt \""); This is a personal learning experience for me. As I am a self-taught.

Member Avatar for JamesCherrill
0
245
Member Avatar for jasonmark238

Hi friends, What is RAR file in j2ee. Please give me directions to creatre RAR files. Please help me. Thnaks & Regards Jasonmark

Member Avatar for rubberman
-1
126
Member Avatar for sbharathind

Hi, I am not able to understand DSW ALgirthm Its process of creating backbone or vine and creating balanced Tree. By rotation of Vine(BackBone) what is being said I couldnt Understand. Read few articles but Couldnt Understand Much. Can some one explain me about DSW Algorithm. And Also I tried …

Member Avatar for rubberman
0
240
Member Avatar for Violet_82

Hi all, finally following the advice on this forum I got hold of the Deitel and Deitel java how to program 9th edition! Great book I must say so far (only got to chapter 3). Now, I am doing some of the exercises as I go along, and today I …

Member Avatar for Violet_82
0
313
Member Avatar for dmanw100

Hello, This doesn't seem to fit any particular forum, but I thought it might fit best here. I need to be able to add Java syntax highlighting functionality to a form on an internal website. Does anyone know of a syntax highlighting framework that supports Java and can be embedded …

Member Avatar for dmanw100
0
177
Member Avatar for Yidnekachew.

Hi, I am new to this forum having a limited experience in programming(only simple C++ and basics of Java) May some willing person help me the steps to make real applications(mobile or computer) using this programming language? `

Member Avatar for JamesCherrill
0
250
Member Avatar for boiishuvo

This code works fine but it would be too long if the score is 50 or over. Is there any way to make it shorter and quicker? I tried to use for loop statement but it didn't work well. background(backgroundChange); if (score >= 5 && score < 10) backgroundChange-=0.8; else …

Member Avatar for JamesCherrill
0
187
Member Avatar for Yidnekachew.

java mobile applications are what i need to specialize within the next 6 months. if so can I? how? i know the basics of java programming.

Member Avatar for mlesniak
0
90
Member Avatar for boiishuvo

Hey, I'm making a simple moving car at night with its headlight bulbs and I'm using PROCESSING software, not java. What I tried to make is when the car touches the right border, the headlight bulb of the right side of the car should be changed to the left side …

Member Avatar for bguild
0
262
Member Avatar for 03hasnam

public class EventView extends javax.swing.JFrame { Connection conn = JavaConnect.ConnectDB(); PreparedStatement pst = null; ResultSet rs = null; private EventModel model; /** Constructor */ public EventView(EventModel model) { initComponents(); this.model = model; updateEventTable(); } public void addEventListener(ActionListener al) { addEventButton.addActionListener(al); } /* public void clearListener(ActionListener cl) { clearEventButton.addActionListener(cl); }*/ public …

Member Avatar for JamesCherrill
0
136
Member Avatar for minime010

I have a problem with this... import javax.swing.*; import sun.audio.*; import java.awt.event.*; import java.io.*; public class PikaPlatformer { //----------------------------------------------------------------- // Creates and displays the application frame. //----------------------------------------------------------------- public static void main (String[] args) { JFrame frame = new JFrame ("Direction"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add (new PikaPlatformerPanel()); frame.pack(); frame.setVisible(true); } } How …

Member Avatar for minime010
0
508
Member Avatar for prashant1111

Hi, I am trying to build a Music player in Java using Jlayer Library. Hi am using AdvancedPlayer and its play() method for playing song. It plays the file but i does not stop until song is finished even Stop button is not pressed,window listener doesn/t works. I am unable …

Member Avatar for JamesCherrill
0
308
Member Avatar for YaLeon

Returns true if the string represented - by the object it is on the same string is represented by the object str. Otherwise false is returned. This system must write the recursion without using any loops. So I did it and it looks like this: public boolean equals ( StringList …

Member Avatar for tux4life
0
173
Member Avatar for lailadah

Salut à tous. j'ai essayé d'installer apache solr serveur pour mon drupal, mais j'ai le message: "unable ti access jarfile start.jar". après mes nombreux essais, j'obtiens: "invalid or corrupt jarfile C:\[suivi du chemin de monfichier] j'ai besoin de l'installer. et rien des réponses que j'ai pu lire ici ne m'a …

Member Avatar for lailadah
0
876
Member Avatar for LegendX

import java.util.Scanner; public class Homework1 { /** * @param args */ public static void main(String[] args) { Scanner scan = new Scanner(System.in); final int ROW; final int COL; int integar; int total; System.out.println("Total number of rows: "); ROW = scan.nextInt(); System.out.println("Total number of colums: "); COL = scan.nextInt(); int [][] …

Member Avatar for JamesCherrill
0
191
Member Avatar for liran

Hey, I have the following code in C-Sharp: byte newByte = byte.Parse(hex, System.Globalization.NumberStyles.HexNumber); What's the equivalent in Java ? Thanks !

Member Avatar for liran
0
1K
Member Avatar for boiishuvo

I have one problem at the line 20-23. What I need is when the blue box touches the red rectangle, the blue box gets resetted (it goes back to where it starts). However, the problem is, it doesn't touch the red rectangle area properly. Any suggestions? Thanks in advance. float …

Member Avatar for margaret224
0
318
Member Avatar for Blink383

I'm trying to display a few Jlabels in the output of my actionlistener. I have a combobox included in the fields I needed added. i attempted to use a Jtable but had issues getting the selected item from the combobox. I choose to this method because I had already had …

Member Avatar for Blink383
0
285
Member Avatar for anukavi

Hi, The question might be little confusing. I have recently joined smart card testing team and its all new stuffs to me. I need ur help in suggesting suitable IDE for writing test cases to test SIM OS & related applications. I insert the Native SIM card into card reader …

0
74
Member Avatar for ng5

I am trying to make a guessing game that lies one-third of the time that the guess is too high (it says it is too low when it is actually too high). And it never lies about the guess being too low, nor does it lie twice in a row …

Member Avatar for bguild
0
451

The End.