36,051 Topics

Member Avatar for
Member Avatar for nanosani
Member Avatar for adityabakle
Member Avatar for eswaramoorthy

Hi, I have problem in rich:hotkey when using JQuery i have used rich:hotKey for h:inputText in my jsp page. And also i wrote jQuery for get the textBox value. When i use jquery, that time rich:kotKey not worked [CODE] <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib uri="http://java.sun.com/jsf/html" …

Member Avatar for eswaramoorthy
0
230
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
102
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
122
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
47
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
71
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
329
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
96
Member Avatar for fankoff

Hallo guys, I want to first start by saying, that I`m fully aware the question I`m about to ask, has certainly already been posted some thousand times. I`ve looked through some of the posts, but non of them was quite like my case (or I just didn`t stumbled upon any) …

Member Avatar for peter_budo
0
269
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
52
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
225
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
993
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
208
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
569
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
87
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
78
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
43
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
261
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
202
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
183
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
67
Member Avatar for parsa.moshrefi
Member Avatar for periyasamy1904
0
74
Member Avatar for murugavel84

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

0
97
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
118
Member Avatar for musthafa.aj

hai ! i want to make tcp communication using servlet, i tried this servlet program.. it will not work can anybody suggesting me... [CODE]import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class TestServer extends HttpServlet{ ServerSocket server; …

0
82
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
119
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
124
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
174
Member Avatar for mohamed mo'men
Member Avatar for NormR1
0
59
Member Avatar for Monkeyseraph

[CODE] public boolean randomFlower() { Grid<Actor> gr = getGrid(); ArrayList<Location> loc = new ArrayList<Location>(); loc = gr.getOccupiedLocations(); int row = (int)(Math.random() * 19); int col = (int)(Math.random() * 19); Location new1 = new Location(row, col); boolean existent = false; // if i is less than size of occupied locations for …

Member Avatar for NormR1
0
93
Member Avatar for insanely_sane

Hey guys. I am currently just a 11th grade student but since I'm done the whole curriculum for my Computers class already, I recently just started making extra stuff for fun. One of things I'm doing is Making a graphical/visual sorting applet. Something like : [url]http://www.cs.ubc.ca/~harrison/Java/sorting-demo.html[/url] I have my code …

0
110
Member Avatar for mayank.15

I am using Lucene Highlighter 2.4.1 for my application. I use the highlighter to get the best matching fragments, and display them. I make a call to a function String[] getFragmentsWithHighlightedTerms(Analyzer analyzer, Query query, String fieldName, String fieldContents, int fragmentsNumber, int fragmentSize). For example : [code=java] String text = doc.get("MetaData"); …

Member Avatar for ~s.o.s~
0
166
Member Avatar for gedas

hi guys, i am planning to undertake a massive project which would be something to do with wii remote as i am aware the wii remote communicate with the console or computer via blue-tooth. i was wondering what sort of data wii remote sends back to the computer or a …

Member Avatar for gedas
0
113
Member Avatar for nchouhan

Hi, i am new to java, and i stuck in between with a folder locking problem. i want to create a private folder without encrypting the data, i have two options 1) Either Lock that folder so none of the user (even admin) can't access that private data. 2)Completely hide …

Member Avatar for nchouhan
0
161
Member Avatar for Naveed_Cn

Hi Every Body! Please any body tell me, is java is so powerful to do system programming wih it like C language and Assmbly.

Member Avatar for vishalbaid
0
2K
Member Avatar for end3r

Hy, I have 4 combo-boxes and each one has a RefreshableValueHolder. If I change the value in one of them, I would like to automatically change contents of the others. I know I have to use the refresh() method of this class, but I cannot figure it out how. for …

Member Avatar for end3r
0
98
Member Avatar for manmeet khanuja

Hi all, I am a new developer in J2EE Field working on a web project. My Requirement is to fetch records from database and display on webpages depends on the scenario. The Server i am using is Apache Tomcat 5.5 and Database as SQL Server 2005 and IDE as Netbeans …

Member Avatar for peter_budo
0
118
Member Avatar for rmsagar

Hi Everyone, I am a beginner with java, please pardon my stupidity The program below is not working and I have this error. Please let me know what I am doing wrong. public class test { public static void main(String[] args) throws Exception { String Month = "May"; if ( …

Member Avatar for rmsagar
0
92
Member Avatar for maxish

Hi, I have implemented a simple socket server in Java. Everything works great except the process just dies/times out after about an hour and I do not know why. I run am running the process through my web host's machine using SSH. My steps: 1. Add to '/etc/rc.local' two commands: …

Member Avatar for masijade
0
423
Member Avatar for Umar Ali

Hello I'm new to java and i'm facing some problem... First code refers to File_Chooser class which works perfectly fine for me... [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package statguis; /** * * @author Umar Ali */ …

Member Avatar for Umar Ali
0
799
Member Avatar for kdmuk10

I am new to java. when i try some code, i get the 'Caught ArrayIndexOutOfBoundsException: 0' message. i need help how to address the problem. the code was as follows. I am leaving out the class name (first line) [CODE]public static void main(String[] args){ try { double hours = Double.valueOf(args[0]).doubleValue(); …

Member Avatar for Ezzaral
0
68
Member Avatar for johndoe444

[CODE] public class FirstJndi { public static void main(String[] args) { String name = args[0]; Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory"); try { // Create the initial context Context ctx = new InitialContext(env); // Look up an object Object obj = ctx.lookup(name); System.out.println(name + " is bound to: " …

0
33
Member Avatar for gokul.raja

Hello, I'm having a requirement to develop a GUI based JFrame which should have capabilities to add Multiple JPanel on an event occurrence[Ex. button click] and the JFrame should be scrollable. I tried a lot, but I failed. I also tried to add multiple Jpanel in JScrollpane that also failed. …

Member Avatar for gokul.raja
0
2K
Member Avatar for softdev

hi guys, i have this senario and i want know if that is possible. i want to apply some aspect-oriented concept. i want to have something like, say two classes. one extract some piece of data from xml file and use JSP to display the data. another class/aspect that log …

Member Avatar for ~s.o.s~
0
81
Member Avatar for jcorcoran

I have a school assignment where I have to write class files to correspond with my instructor's already written class, which includes the main() method. He has the main class importing the child class of a ParentClass, each of which is in a different package. In the main method, he …

Member Avatar for ~s.o.s~
0
83
Member Avatar for bsunkel

Hi all, I have a JOptionPane with a YES button and a NO button. All I want to do is be able to press the left or right button on the keyboard to change the focus on the buttons. By using the mouse it works. Is there some kind of …

Member Avatar for viniciusmss
0
651

The End.