473,554 Members | 3,197 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Forum

Java programming language (Sun Microsystems) - Ask questions about java programming, OOP, JRE, SDK, Swing, Plugins, Java Virtual Machine(JVM), Java Libraries: Collection, XML Processing, Security, JDBC, JNDI, RMI, CORBA, AWT (GUI) and more.
0
1,085
thread by: Corwin Moyne | last post Jul 25 '14 by: Corwin Moyne
Hello. I have a Jasper Report being populated from a database. The report will be used as a stock check form so I have a rectangle on there that will be used to enter data manually when the report has been printed. One of the fields (Reference) is set to not print repeated values but how can I get the rectangle to only print when the...
0
1,171
thread by: swetha1 | last post Aug 2 '14 by: swetha1
import java.awt.*; import javax.swing.*; import java.applet.*; import java.awt.event.*; public class stud2 extends JFrame implements ActionListener {JRadioButton rb1,rb2,rb3,rb4; JButton b1,b2; Label l1=new Label("Name :",Label.LEFT); Label l2=new Label("Age :",Label.LEFT);
0
1,228
thread by: mezza456 | last post Aug 5 '14 by: mezza456
I am looking for a way to create a method with the initial state in while loop, which will count the length of each word in a string using I want the output to be something along the lines of: hello world how are you There are 0 words of length 0 There are 0 words of length 1 There are 0 words of length 2 There are 3 words of length 3 ...
0
1,018
thread by: harikittu | last post Aug 18 '14 by: harikittu
Hai deligates... i am working on my college project to prpare a feedback form. the feedback form consists of 21 questions ,each of the question conatins 4 radio buttons for strongly agree, agree, disagree and strongly disagree. i have to prepare a jsp page for that. After giving feedback the page has to evaluate the satisfaction percentage. i am...
0
1,072
thread by: Luuk | last post Aug 30 '14 by: Luuk
I have created a piece of java-code, with eclipse, and WindowBuilder. When i test this in eclipse, i see, with default settings, English labels. When i choose 'nl_NL' (externalize setting), i see my labels in Dutch. When i create a runnable jar, i can only see my text in English. Question: How do i choose the Dutch language when running...
0
1,029
thread by: naveedpaen | last post Sep 13 '14 by: naveedpaen
I want to make a android app, in which I will just search any word (title), Data in text format should be shown in the app, no image and no markup etc is required. I know, I need Wikipedia API. But please someone tell me steps, or any good tutorial or screenshots for completing this tough job.
0
1,689
thread by: joakins | last post Sep 23 '14 by: joakins
How can i make radio buttons in a dialog to launch a new activity. I want the user to open a new activity whenever they click one of the options in a dialog of radio buttons Regards
0
1,374
thread by: javalex | last post Oct 5 '14 by: javalex
I've been spending a lot of hours fixing this, I'm a 2nd year college student in Computer Science, my professor lack time teaching us about this and she gave us our final project for the semester and I really need help. I want to put the JLabel on the middle of my JFrame, but the JLabel won't position itself, I've used several methods to fix it...
0
890
thread by: jimmylover | last post Nov 23 '14 by: jimmylover
If anyone could let me know how to get my intersection and difference methods to print properly. I have to use iterative loops and methods to complete this assignment so NO in built methods are to be used!Thanks import java.util.Scanner; public class setPractice { public static Scanner kbd; public static final int MAXSIZE = 20;
0
1,375
thread by: TYCE VINOD | last post Nov 26 '14 by: TYCE VINOD
Hi this is tyce.. Am using j2ee. i would like to send email from rediff.com to other mail. am having code of servlet properly send gmail but not rediff my gmail host name is smtp.gmail.com prot no :587 is that sent properly. can any one help me how? from rediff?
0
1,124
thread by: iggyGrande | last post Dec 13 '14 by: iggyGrande
I was religiously following icodeya's tutorial about incorporating protractor tests in my grails application. It works really well. I was wondering if there is a way for me to make a similar command for testing an individual protractor test file? Like: grails protractor someTest or something? Is that even possible? This is the entire file: ...
0
1,080
thread by: yuzhengwen | last post Dec 15 '14 by: yuzhengwen
I've been having a weird problem with my swing timer that I use in my game to count my points. Here's the code: The problem is that the thread does not run public void start() { if (!running) { t = new Thread(this); // t is the game thread with the game loop t.start(); countPoints.start(); // is the timer, that repeats...
0
1,145
thread by: Noob1234 | last post Dec 15 '14 by: Noob1234
I am making a web based stagenography appplication in java but i am stuck at how to get the individual values of Red Green and Blue in an image pixel.I have an equivalent code in C# but i am not able to split a pixel value into Red,Green and blue. The following code includes the function that hides the picture in another image. private void...
0
1,769
thread by: fellowmello1 | last post Dec 17 '14 by: fellowmello1
Hi All, I'm fairly new to Java and would greatly appreciate any help on this code! Arrays are my weak point, and to be honest, I've tried to figure this problem out but it's taking me a long time. Thank you!! :) Here is my assignment: Your instructor will provide you with a text file, (numbers.txt), containing a large (N <= 1000) number of...
0
1,202
thread by: gamer2d | last post Dec 23 '14 by: gamer2d
How can I create a TextureRegion into button in libgdx-android(java)? I found a simailar solution here: http://stackoverflow.com/questions/21488311/libgdx-how-to-create-a-button problem is that it is using BitmapFont and I am not. I upload a image using TextureRegion and now I want to turn this image into button. any ideas?
0
1,205
thread by: abhishekphukan | last post Jan 2 '15 by: abhishekphukan
import java.util.Random; public class apples { public static void main(String args){ Random rand= new Random(); int freq=new int; for(int roll=1;roll<1000;roll++){ int index = 1+rand.nextInt(6); int f = freq;
0
1,499
thread by: ashfaqbin | last post Jan 2 '15 by: ashfaqbin
Hi friends, Here is my code for selecting datas from myql database with the help of php.All i want to do is i want to pass and display image through intent from Activity 1 to Activity 2.im new in android so please help me. **Activity1** import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import...
0
1,009
thread by: kaxa | last post Jan 6 '15 by: kaxa
we use IntelliJ IDEA 14.0.2 , how my friend can share his sql database to me ? we use jdbc.Driver
0
1,056
thread by: Norgy | last post Jan 10 '15 by: Norgy
i am trying to add a new object to a normal member inner class named MyLine here is the inner class: class MyLine{ public void add(int xx1, int yy1, int xx2, int yy2){ x1=xx1; x2=xx2; y1=yy1; y2=yy2; }
0
1,531
thread by: rocky2588 | last post Jan 13 '15 by: rocky2588
Any possible way to make a application streaming video downloader like youtube downloader . i googled and tried the code 100 kb file stored and stopped then not properly downloaded. private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { // decode the url String result =...
0
1,211
thread by: rajujrk | last post Jan 22 '15 by: rajujrk
Hi, I'm Developing a tool to get all in one. That means, from this tool have to manage Websphere Application Server (Done), Webserivces Status (Done) and Oracle Coherence(Stucked here). I have to connect oracle coherence through JMX and fetch the details like Storage, Proxy and JMX running and stooped nodes and current available and allocated...
0
15,354
hasansunasara
thread by: hasansunasara | last post Feb 3 '15 by: hasansunasara
In this article, we will discuss how to programmatically obtain a request-mapping URL for a module in Spring. Java developers know that all versions of Spring from version 3.0 onward, allow the developer to manage handler mapping by defining it in the controller class using an @RequestMapping annotation as an alternative to the XML configuration...
0
1,232
thread by: user545 | last post Feb 13 '15 by: user545
IDL FILE module DirApp { typedef sequence<string> CompName; typedef sequence<string> CompNumber; typedef sequence<string> CompDetails; typedef sequence<string> rate; interface DirInterface{ string getContact(in string name1,in CompName conam,in CompNumber conumb);
0
1,227
thread by: javadb2 | last post Feb 19 '15 by: javadb2
Hi I'm calling a db2 stored procedure using dynamic sql statemrnt from java. The call has the schema name and sp name. The mf returns sqlcode -805. Any help. Thanks
0
1,280
thread by: rajujrk | last post Mar 3 '15 by: rajujrk
Hi All, I have two different web application, one developed using struts 1.x and second using spring 4.0. Both having the same screens, assume my application having 9 modules. In that 2 modules revamped using Spring framework with new UI. 7 modules are not yet revamped in Spring 4.0. So that I planned to load the remaining 7 module's screen...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.