36,051 Topics

Member Avatar for
Member Avatar for coroll

Hi, Im developing a game. When the human gets his turn i want to display a JFrame with some buttons. So the game must wait until the user clicks on a button. Also i want to identify which button is clicked. I read that JOptionPna gets any component as a …

Member Avatar for Taios
0
288
Member Avatar for boiishuvo

I made a simple program - conservative sequence integers with a sum, for example input: 15, the output should be 1, 2, 3, 4, 5 I made this program in c++ and it worked successfully, see below: #include <iostream> #include <string> using namespace std; int main() { int num, i, …

Member Avatar for Taywin
0
266
Member Avatar for prakash89.gitam

Hi I have a task to do. I will just brief it in a sentence, I have a file of 20000 lines. Now task is to recognize number of similar lines. ex1 : "The quick brown fox jumps on a lazy dog" ex2 : "The quick brown dog jumps on …

Member Avatar for Taywin
1
181
Member Avatar for hatebin

I'm trying to develop a client application for a game server. For example i would like to restart server with counter-strike on it. In a simple way i just open CS console and type "restart" command. I know the IP and port number where the game is hosted. I've allready …

Member Avatar for NormR1
0
171
Member Avatar for kb2k8

Hello, I need some help with these simple questions. I am a first year IT college student and I do not know how to apply math.pow to these statements. Given the following expressions, re-write them as Java expressions using some parentheses to indicate a sequence of operator evaluation. 1. v …

Member Avatar for kb2k8
0
145
Member Avatar for LinkedList

Hey guys. I want to create an application for my PC in JAVA which can communicate with my CELL phone via Bluetooth. I just want it to receive text chats send by cell over bluetooth connection and be able to display them in appropriate format. I have good knowledge of …

Member Avatar for hatebin
0
264
Member Avatar for Johannady2

This is our longquiz from this morning. don't worry.. I am not cheating off a quiz.. it's already 22:00 o'clock where I am. this quiz was on 8am. I am studying for our final exam tomorrow. we weren't told the right answers.. and I don't have a book right now …

Member Avatar for DrEinstein
0
317
Member Avatar for Viped

Hi, I want to do program that reads different news sites and lists headlines. How this should be done? How to read the data from the web sites?

Member Avatar for YahooTR
0
89
Member Avatar for thecrazy

**Bold Text Here**hi, i need some help. i ave written the code for different forms of an applet in swings, but i am not able to open another form by clicking a button in on form. for eg when i click the registration button it should open the registration form. …

Member Avatar for karyal
0
99
Member Avatar for srujan.kommoju
0
124
Member Avatar for rahul.ch

A question that I came across: Q: Can you pass a double to a method when it's argument is a float? A: No. Regardless of the double value, a double-sized variable is too big to fit in a float, so it can't be implicitly cast. Doubt: Shouldn't narrowing happen implicitly?

Member Avatar for JamesCherrill
0
208
Member Avatar for chotep

class Nines { public static void main(String[] arguments) { for (int dex = 1; dex <= 200; dex++) { int multiple = 9 * dex; System.out.print(multiple + " "); } } }

Member Avatar for chotep
0
171
Member Avatar for wilddrummer

Hi all, thanks in advance for the help. I have placed an "X" on the first JButton and what I need it to do is this... Once the user has clicked the button with the "X" it needs to disappear and reappear on a different button. This process needs to …

Member Avatar for NormR1
0
235
Member Avatar for kathir100
Member Avatar for JamesCherrill
0
256
Member Avatar for Hades80

I need help translatinthis problem The sum of the sqaures of the 2 larger interagers is 12 less than 4 times the square of the smaller number.

Member Avatar for Taywin
0
145
Member Avatar for vstl

I have two text area on the screen, I can make bold the different words between two text areas and I want to have for up and down to go the different words helping this button on the text areas. how can I do that?

Member Avatar for NormR1
0
98
Member Avatar for kathir100
Member Avatar for jennilyn.frias

Hi.I would like to ask if an ActionListener can take a do-while loop. I have this MenuFrame that the JButtons won't come out everytime I click it but it is running. Everytime I remove the do-while loop the MenuFrame will come out with the JButtons. Any suggestion on what shall …

Member Avatar for JamesCherrill
0
32
Member Avatar for Cornerslikemad

I was trying out the examples from w3schools. I was wondering if is possible to extract the lastvisit data separately from username. function checkCookie() { var username=getCookie("username"); if (username!=null && username!="") { alert(unescape(document.cookie.split(";"))); }

Member Avatar for Taywin
0
37
Member Avatar for coroll

Hi, I want to get the object of the currently open JFrame? I found this Frame[] frames = Frame.getFrames(); Does this provide the open frames? If so how to get the frame that i need. Plz Help..

Member Avatar for stultuske
0
121
Member Avatar for geek86

Hello everyone. 1)I am trying several days now to display an image from file Chooser in Netbeans. i have read and tried many different approaches from the web, but something goes wrong.Although the program runs ok,I see no results.Until now, I have used the "Design" tab of Netbeans to create …

Member Avatar for JamesCherrill
0
3K
Member Avatar for bharath54321
Member Avatar for bo0ga

Graduated in May and still jobless. I want a position in programming but chose IT as my major. I should have chose computer science which focuses more on programming. Anyway, I seem to not be knowledgeable or skilled enough when I go on interviews - even for junior level positions. …

Member Avatar for stultuske
0
133
Member Avatar for slim.helu.92

hi.. am quite new to sound applications in java. I want a audio control panel as output. i.e. if i click play button audio should play, if i click stop audio should stop and if i click pause audio should pause/hold until the play or resume button is clicked. i …

Member Avatar for slim.helu.92
1
191
Member Avatar for alissaw

Hi everyone, java newbie here. I've got a bit of a loose grip on delimiters, which I'm trying to use in this code from project "Add 'em Up" in Blue Pelican Java lesson 17. The code **does** compile, but I'm not getting the results I want. When I run the …

Member Avatar for stultuske
0
210
Member Avatar for alissaw

Hi everyone, Java newbie here. I'm trying to compile this code, but I'm getting errors on lines 40 and 42 saying it can't find the symbols *balance* and *name* that I defined in the beginning of the code. I'm not quite sure what I did wrong, and would appreciate any …

Member Avatar for alissaw
0
172
Member Avatar for 3nrichedd

Basically I have found myself stuck in a math problem, any possibilities for assistance? I know this is java but I figured there must be a java programmer out there that knows how to solve this? c=95% In small NY towns (population < 30000) a sample of 22 libraries had …

Member Avatar for NormR1
0
177
Member Avatar for harirock

**Jvm is a folatform independent or not if it is yes way? no why no?**

Member Avatar for rotten69
0
128
Member Avatar for hamiltino

I missed one of my classes for data structures. Can anyone give me a general guide in solving this simple recursive problem using Linked lists. Where one has to find the min and max values of integers stored in a linked lists. Here is methods i need to use. Write …

Member Avatar for JamesCherrill
0
431
Member Avatar for rithish
Member Avatar for rajesh1158

Need an Hello world example of how to add an item in the context/pop-up menu in eclipse plugin development. (menu should pop-up when we right-click anywhere in the workspace).

Member Avatar for JamesCherrill
0
309
Member Avatar for ravz414

Hi, We are to develop a social networking kind of web app for our and our clients' employees. The number of users can go high. My question is which platform would be better for this project, considering performance speed as the main criteria and faster development as the second criteria. …

Member Avatar for pritaeas
0
61
Member Avatar for shweta.tomar.798

i have a **java program** and it call **matlab exe file** ,but i have a problem in run time it is so so slow . i need a help in how to make this faster, i will be grateful for any help...plzzzzzz rply

Member Avatar for stultuske
0
175
Member Avatar for shweta.tomar.798

how to instantly update jtable after addition/deletion of any record.And how to add checkBox in every rows of jtable in java .i will be grateful for any help...plzzzzzz rply thanx in adwc...

Member Avatar for stultuske
0
165
Member Avatar for jjjmikalord

hello there, is there anyone who can tell me hwo to actually check whether an an int array element is a null or not? in java, I tried (array[i]==null) or (array[i].equals("")) but it seems that the compiler will tell me that int is incomparable to null or string everytime I …

Member Avatar for stultuske
0
732
Member Avatar for 47pirates

In my desktop application whenever execute the code to backup my database from java application the app goes on waiting state may be for password , which we have to enter while backing up from command line. But i've provided the username and password of database in the code. Why …

Member Avatar for rajesh1158
0
3K
Member Avatar for 47pirates

I'm using Xampp for the database in my computer now what i want to do is to back up the database name "HMS" with "root" username and " " password. How can i do this in java please suggest.

Member Avatar for rajesh1158
0
170
Member Avatar for bohm13rit

I can't seem to figure out how to reverse the order of the letters in a string. This is what i have so far... [code] [COLOR=Blue]public String reverse(String normal) { //reverse the letters in string char last; //last letter of string int leng = 0; //length of string int i; …

Member Avatar for teachMyself
0
957
Member Avatar for zeroflee09

## Sub-Heading Here ## > im working with time in and time out app which compute all of the hours that you've been working. > and i got this error.! i dont know how to fix these. plss help me im a beginner. > > error: variable th1 might not …

Member Avatar for zeroflee09
0
307
Member Avatar for abbelylee

am trying to load a csv file on my application which allows the action listener to call a readfile method and displays the 2d array on the file to the textarea. i am getting a compliation error of such. pls how do i rectify this setText(java.lang.string) in javax.swing.text.jtextcomponent cannot be …

Member Avatar for NormR1
0
109
Member Avatar for abbelylee

i am developing an app that can import csv file and display its content on the text area of the GUi. the challenge am facing is calling the readfile method from the event listener to display the data. the readfile method is void and wouldnt be accepted. based on my …

Member Avatar for JamesCherrill
0
118
Member Avatar for vstl

And I want to show the different words in two text files and make them bold, show on the screen. my code compiles when entering a word show the common words in two txt files and underlined them. instead of entering the word, I want to read a txt file, …

Member Avatar for Taywin
0
841
Member Avatar for darwin_nacional

Hi, I need help in downloading the files from here https://svn.java.net/svn/nbribbonbar~nbribbonbar/ Based from this tutorial ( http://platform.netbeans.org/tutorials/nbm-ribbonbar.html ), I need to download the files in the link but I can't seem to find a way how. Can anyone help me out? Thanks! :)

Member Avatar for stultuske
0
167
Member Avatar for phil.robison.5

I am having a lot of trouble with the game I am supposed to be creating, so I'm going to put it out here for the many minds smarter about this stuff than I am to see if they can let me know whats wrong... I am brand new to …

Member Avatar for JamesCherrill
0
265
Member Avatar for funwithme

Hi, Please anyone help me to develop **OSGi bundle with JAX-WS** and how can I deploy it into **jboss eap 6**. If anyone provide me sample hello world example or any tutorial link that is also helpfull for me. Thanks.

0
51
Member Avatar for vstl

(duplicates http://www.daniweb.com/software-development/java/threads/430259/reading-a-contents-of-txt-file-compare-the-contents-other-txt-files)

0
50
Member Avatar for B204

hello frnds!! i want to know which things in programming slows the running process of program..... i want that my program should run in minimum time.....

Member Avatar for stultuske
0
77
Member Avatar for Johns3

So I have successfully implemented a search feature into my tiny program but when I click the button to sort, it works fine but the images don't display. In the columns called "A" and "B", images are supposed to show up but they don't. http://i46.tinypic.com/2mx3og8.jpg . import java.awt.Color; import java.awt.Component; …

Member Avatar for Johns3
0
239
Member Avatar for Nickquane

Plain Text : ABCDEFGHIJKLMNOPQRSTUVWXYZ Cipher Text : HETJWOPSQYAZIVMBDUKNRGLCXF Turns the plain text "BOY" into the cipher text "EMX". Note the substitution is a permutation of the 26 letters of the alphabet, so we can uniquely decipher a cipher text by reading the substitution backwards; that is, cipher text "A" is …

Member Avatar for NormR1
0
518
Member Avatar for mullangi13

Hi Friends, I am developing one application using Struts1.3+Spring2.5+Hibernate3.6 to do practice. In this application I am using Spring AOP transactions, but transaction is not working for me. Please check my code snippets and help me. web.xml ======= in addition to general entries, I have added the following code as …

0
147

The End.