32,199 Topics

Member Avatar for
Member Avatar for mhopper

All, I am developing a Socket Server in Java. Its job is to receive TCP packets from a unit sending Hayes AT commands via GPRS/sim chip combination over broadband. The software for the unit sending the packets has been written in C++. Packets sent are all in hex bytes. I …

Member Avatar for mhopper
0
8K
Member Avatar for swati.n

hi I want to have a screen in my mobile application wherein i would be able to have text as well as images on the same screen. i would have some simple text following it would be 2 or 3 images on the same screen. looking forward for some solution. …

0
31
Member Avatar for nanosani
Member Avatar for adityabakle
Member Avatar for Nicris

[CODE] boolean isavail=false; new Thread(){ public void run() { . . . isavail=fun(); . . . } }.start(); [/CODE] I need that value assigned in the run() method ..... But eventhough the function returns "true", the value being present in that variable after the thread is "false" only...... How to …

Member Avatar for Nicris
0
100
Member Avatar for puppykillaz

I am losing a value in the array with my bubble sorting and the sorting does nothing. Here is the Items Class [CODE] public class Items { // * A String instance variable to hold the item name private String itemName; // * A double instance variable to hold the …

Member Avatar for JamesCherrill
0
3K
Member Avatar for smith32

hello, can u plz help me?? I can't run the javascript on Mozilla nad IE(can run on Chrome) I don't know why. I think my javascript has some problem. Here is my code ..... [CODE]<script> function check() { if(document.getElementById("name").value==""||document.getElementById("address").value==""||document.getElementById("phone").value==""||document.getElementById("email").value==""||document.getElementById("username").value==""||document.getElementById("passwd").value==""||document.getElementById("passwd2").value==""){ alert("You need to complete the form"); } else continue; } function …

Member Avatar for diafol
0
121
Member Avatar for ceyesuma

Hello: I have a frame that shows rs from a db. I also can show the hodgepodge of code dealing with how a table could be manipulated. I am trying to cipher out what is needed to simply add a empty editable row to the table when it builds.I do …

0
45
Member Avatar for mahdi68

Hi I have some question about java and jvm on mobile devices java app how works on mobile devices like Sony Ericsson or nokia s40 , ... ??? is any JVM or somthing like this on this devices for run java app ??? if there is no os on this …

0
70
Member Avatar for Apollo12

The code is too big to paste the entire when i am having one error at Line 20 that says: "cannot make static reference to non-static Integer" I'm use to C but so I'm not use to having to putting the word static in places. [CODE]private static void createTree(){ ArrayList …

Member Avatar for sunny101
0
326
Member Avatar for Tym326

Hi all, I have recently decided to implement struct framework with my current project. All are good except there a number of pages that uses , the particular page forwarding statement stopped working. The pages that used are all part of the "body" of the tiles. Say I have a …

0
93
Member Avatar for vilas_tadoori

Hi All, We are working on JMX technologies. I have created a MBean and registered it with JMX agent. For logging purporses we are using the class that log4j jar file. What we have acheived till now is the static logging..ie., if we change our loglevels from "debug" to "info" …

0
50
Member Avatar for vardhmansk

Hi. I have created an application wherein I am showing a large image inside a JScrollPane . As I move my mouse over the image within the jscrollpane i want to display the RGB values of the pixel under the mouse pointer on a status bar. I am able to …

Member Avatar for vardhmansk
0
212
Member Avatar for yasaswyg

I am working on this project for my class, and I am getting an error when im trying to compile. I dont understand what the problem is. can some one help me out. The error is "Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - cannot find symbol symbol: class …

Member Avatar for yasaswyg
0
1K
Member Avatar for vardhmansk

Hi , I am trying to create an image-viewing application , wherein the user chooses an image file using a file chooser . I have created a Jpanel ,inside a jframe with a menu bar, which gives the user a variety of options to select from , using combo boxes …

Member Avatar for vardhmansk
0
979
Member Avatar for insanely_sane

EDIT: This was moved from the Java discussion forum. It seems more appropriate to post it here. This is not exactly a homework assignment. I'm just doing it for fun ^^ Hey guys. I am currently just a 11th grade student but since I'm done the whole curriculum for my …

Member Avatar for insanely_sane
0
205
Member Avatar for mitch9654

I am working on some code for getting user input on what songs they want for a dance. Unfortunately, when running the applet with some html, java opens a window saying [CODE]Java has discovered application components that could indicate a security concern[/CODE] three times, and no matter what you click, …

Member Avatar for mitch9654
0
520
Member Avatar for kdmuk10
Member Avatar for tyson.crouch

G'day, I'm just looking to clean up some of my code as i know that at the moment it doesnt follow the best practices. I have the following function which calls my database() class. I know that i need to close my connections and statements im just not too sure …

Member Avatar for Stefano Mtangoo
0
83
Member Avatar for dirnthelord

Ok, Here is the thing. I have a JPanel inside the JScrollPane. JPanel has many Images (as ImageIcons on JLabel). Now I want to make the auto scrolling to be happen when I place mouse over the JScrollPane or any child of its. I could do the scrolling to the …

0
76
Member Avatar for ceyesuma

Hello: I was trying to plan a component to collect data from a user. I have two approaches in mind. I was considering a Jtable with editable cells. Can a table be configured to display vertically? Or, I was going to get meta data from the tables and build a …

0
41
Member Avatar for monmonsnow

hi guys i need help with my project. I am a beginner in Java programming,and recently I came across a project, i am having problem at the start...so i need some guide to tell me how i should do(the steps). My project required us to do a word game that …

Member Avatar for NormR1
0
254
Member Avatar for bd338

Hello everyone! I'm trying to make a "map creator" program, which allows you to place 75x75 isometric tiles in a grid. I'm drawing the grid using the overridden "paint(Graphics g)" method, which you'll see in my SSCCE below. But the problem is that I'm not able to place JComponents the …

Member Avatar for NormR1
0
195
Member Avatar for SoggyFries

This is my node and driver class. I need to find the smallest value on the left side of the tree. [CODE]import java.util.ArrayList; import java.util.List; public class NTreeNode<T> { public T value; public List<NTreeNode<T>> children; public NTreeNode(T val) { value = val; children = new ArrayList<NTreeNode<T>>(); } public String toString() …

Member Avatar for leiger
0
179
Member Avatar for Rohit V Gupta

I am having 10 java file, first is my splash screen and after that login page is displayed. So, how can i redirect the splash screen to login page and after login how can i redirect it to my Menu.java file in j2me. Please some help me for it. Thanx …

Member Avatar for peter_budo
0
65
Member Avatar for murugavel84

Is there anyway to close the firefox using javascript without changing the about:config file?

0
79
Member Avatar for poisson

I learned some java in school just 4 weeks ago, so i do not know much things ... so requires your help!! [CODE] String[] alphabetArray = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", …

Member Avatar for igonzales
0
117
Member Avatar for adity

Hi, I have a Jtable created in swing of which one column contains check boxes. What i want is a few check boxes on specific rows.And now in the entire column Any help! :) Also i donot know the row number at which i want the check boxes.That needs to …

Member Avatar for leiger
0
115
Member Avatar for runningkuma

I've been rewriting a copy of the original Pokemon battle system in java. hered my current code: [CODE] private void opTurn(){ //Todo: opponents random attack does random damage, //misses, or causes a status effect //p.pause(005); wait(1) Action.setText("Tiffayoniton attacked!"); curPl -= 10; plCur.setText("" + curPl); } private void A1MouseClicked(java.awt.event.MouseEvent evt) { …

Member Avatar for NormR1
0
123
Member Avatar for daffydk13

I have the program working but with using ActionListener and ActionPerformed. Instructor wants it changed since it is not the clicking the button that triggers the application but entering in '-1' as a grade. I am lost on trying to change it as nothing seems to work for me so …

Member Avatar for NormR1
0
171

The End.