35,618 Topics
![]() | |
I'm trying to create an array of two radio buttons. but with the code i have right now it just wont show up on my jframe. Can anyone tell me what I might be doing wrong? Help please.. Here is a snippet of my code .....I'm only working on the … | |
Hi there How do I write a simple value like 1(5v) to the DB9 port and how do I monitor the DB9 port for state changes on it? Here is the scenario : I made a circuit with a 16f627 processor that is connected to the PC via DB9 port. … | |
I've been trying to get a list of values from database using hibernate. I'm using MS SQL Server XE 2005 and using Hibernate 3.2.2 to fetch DB rows. I've tried JDBC drivers provided by Microsoft as well as jTDS but all I get is an empty list. Here is my … | |
I was wondering if someone can help me, I have this snippet of code that I know is giving me an issue but cannot figure why: [CODE]public D put (K key, D data){ DataTreeNode<K,D> dtn = insert(key); if(key.equals(dtn.key())) [B]return dtn.data();[/B] else return null; }[/CODE] I know I want the [B]return … | |
I would like to know a list of systems (standalone) that can be made using JAVA. For example payroll system, billing system etc. Please state some simple systems that requires basics of OOP and few swing codes. Thank YOU :) | |
how to write a program in java for regular expression as • [0 − 9]*(a|b)+[x − z]?b • a+(a|b)*c(c?b|ca+)* please help me in coding ,i will waiting thanks | |
I want creat thread but I dont know...[CODE]import java.util.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; //------------------------------------------------------------------------------------------------ public class MyApp extends JFrame { // Data static boolean stopped = true; // Is the counting stopped? (True or False) --> shared variable static JTextField number; //------------------------------------------------------------------------------------------------ // Constructor public MyApp() { // … | |
Hello All, I need to make parallel processing with Java. I know there are threads but i need to examine a distributed-like system. I will implement the MST algorithim and with a distributed syncronizer I will merge those sepereted nodes with rounds to find best and minimum spanning tree. This … | |
[code] import javax.swing.JOptionPane; import java.text.*; public class casestudy { public static void main(String[] args) { JOptionPane.showInputDialog(null, "Program Application", "Choose a Program", JOptionPane.QUESTION_MESSAGE, null, new Object[] { "Bubble Sorting","Balloon Sorting", "Insertion","Exit" },"casestudy"); switch(casestudy) {case 1: {String stno,ndno,rdno,thno,fthno,sthno,vthno,ethno,nthno,tthno; stno = JOptionPane.showInputDialog(null, "Input 1st number:"); ndno = JOptionPane.showInputDialog(null, "Input 2nd number:"); rdno = … | |
[code=php] exec('java -version', $javaver); print_r($javaver); echo "<br />"; exec('java -jar start.jar', $output); print_r($output); echo "<br />"; exec('java -jar post.jar /home/content/j/a/n/jandtesting/html/solr/example/exampledocs/solr.xml /home/content/j/a/n/jandtesting/html/solr/example/exampledocs/monitor.xml', $output2); print_r($output2); [/code] I've never attempted anything with java before. I'm trying to get started on the solr tutorial -- a java based search engine based on Lucene. I … | |
Hi, I am kind of stuck on how to display numbers between an inputted number and a specifed number, for example 10 and 5, how would I go about doing this? can anyone help me please? | |
Hi, I am trying to write a binary search. The main method randomly makes an array of 1 mil int's, and the binary search returns if an entered int is in the array, but I seem to be having trouble getting it to work, I've been working on it for … | |
Hi gud evening to all!! :) Can someone help me with regards to my exercisE? I really need to finish my exercise.. The problem is this.. I am going to determine how many times does the letter occurs in a sentence including spaces and periods... For example: Sentence: We are … | |
I want to control the number of clicks in my button group which is inside DefaultTableModel of JTable. Like only one click for a certain Radiobutton. Suppose I have 3 radio buttons in a button group: 1) A 2) B 3) C If a user clicks A he can select … | |
can any1 pls help me with the codes for uploading images to my java prog.. and codes for DB connectivity with MS access... its nt connecting.... i need it asap..!!! | |
one fellow gave my full house address while chating i asked how is it possible he said he got it through ip address | |
hi may i know how to exit the mediabox? for example i create a group inside that is the mediabox but when i click the close button(custom button) it will go to the other group and thus exit the mediabox. current situation is that when i click the close button, … | |
Hi, I've read the rules for this website and i'm aware that we should not expect people to do our homework. But I really need help on this program.. and I'm not sure how to start it, and it's last minute help please. I'm suppose to do this using sorting … | |
hi, i am using netbeans 6.7.1 with javafx inside i saw alot of example from sun using [B]import com.sun.javafx.mediabox.; and *import com.sun.fxmediacomponent.*;[/B]however in netbeans when i try to import either this 2 import it say that package does not exist can someone help me ? thanks alot | |
Hi guys, Im looking for some tutorial which could illustrate development of database driven web services. I tried to search some through google, however no success so far. Thanks in advance! | |
Hi, I launched my swing application.before it launched I opend a note pad.When my application got launched it is having textfiled which is blinking.but when we type something it is typed into the notepad. i need to remove the curser when the application is not having the focus. But I … | |
hi every body i have a problem whit the condition to check if the element is duplicate element or not this is the problem Duplicate Elimination Use a one-dimensional array to solve the following problem: Write an application that inputs 10 integers. As each number is read, display it only … | |
Okay so far this is what i have, i havent really gotten very far but id like to get the layout all set before i try to tie things together. The problem im having is getting the JButtons colored. In order for my game to be like the game simon … | |
Is it posible to create an MDI Parent and child in Java as is done in VB. Net? If possible kindly help out.... | |
Hi Fiends, Does anyone have any idea of how to upload a ZIP file or any other file and perform some string manipulation on that file and return the new file for downloading through JSP on Jakarta Tomcat server. Thanks Atul | |
I am a beginner to java - my university course module requires me to do an assignment - that is choose a system and build one. i have chosen "Student Grading System" - this wont require a database. i need to just enter student marks and thereby determine that subject … | |
Hey everyone. I am supposed to create a program that finds the area of a triangle...this i can do fine. My only problem is i was told that i need to use a get and set method to calculate the area. I dont exactly know how to use a get … | |
[CODE]import java.util.Scanner; public class Draw { public static void display1 () { System.out.println("============================================="); System.out.println("| SELECTION |"); System.out.println("|===========================================|"); System.out.println("| Option : |"); System.out.println("| 0: Exit |"); System.out.println("| 1: Empty Shape |"); System.out.println("| 2: Filled Shape |"); System.out.println("============================================="); } public static void main(String[] args) { Scanner input = new Scanner (System.in); int … | |
Hi everyone, I am new to java and I wrote a program that does the following (using Scanner): Name: Last Name: Age: (More? Y/N): When the user presses Y, he/she can add more information. Then in the end, I want to print something like: The participants are: Soni Smith (30), … |
The End.