35,618 Topics
![]() | |
import javax.swing.JOptionPane; public class Hotel626 extends javax.swing.JFrame { public Hotel626() { initComponents(); } @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { jLabel2 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jProgressBar1 = new javax.swing.JProgressBar(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); setResizable(false); jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Pic/Entrace.jpg"))); // NOI18N jButton1.setBackground(new java.awt.Color(0, 0, … | |
ATM -Deposit -withdraw(5 times maximum per day) -maintaning balance 200 -maximum withrdaw 20,000 -Default Amount 50,000 help me :( | |
Hello everyone. I have created a class in Java named Farm which contains a list of animals(cow,pig and chick). myFarm is an array of object of Farm class containing objects of NamedCow,pig and chick class. I have not understand one line in my code: NamedCow named = (NamedCow)myFarm.get(0); here what … | |
I've recently become interested in trying to adapt my Rock-Paper-Scissors game into a multiplayer-friendly program, so today I decided I'd look up a tutorial on servers. It seems I'm following it precisely (aside from using a different IDE). However, something is going wrong and I'm not sure exactly what it … | |
Hi everone, Currently i am working on an Pharmacy management project in MVC2 model i have written an servlet code to fetch,insert,update,delete MySQL table contents from the JSP page but my problem is i could insert the data successfully but i am failing at Update and delete here is my … | |
Just wanted other opinions on my code and a way to figure out whether or not each number placed into the 2D array is unique. My mind is blanking out a bit, I placed something in the method before but erased it. Debating on whether the parameters should simply be … | |
Using the easysoft JDBC-ODBC bridge to connect to an Access DB. Has been working great since CF6. Currently no issues on CF9(solaris). We're working to upgrade our servers to CF10 on Redhat and have everything working except when we attemtp to verify our data sources that use this driver we … | |
i triyed to learnJava programming using netbeans, what kind of a book do you think i can use to be highly educated with programming in java | |
Hi ! I am new to JSP. I want 2 create 2 dynamic related combobox that pull values from database. I took the help from this link: dynamically populate the city combo box based on the values of state combo +ajax+jsp. It runs fine but if there are special characters … | |
Hi all master is posible srcape a web java applet using curl php? please help | |
Dear All, I have an animal class and a thread class. Just to understamd the concept of Object lock in threads. I have used the Animal instance as a lock in my thread class. The program never ends. My question is is there a condition i can put before invoking … | |
Hello, I am writng a simple networking program with a single server and multiple clients. I would like to send and receive objects between the clients and the server and hence I use the ObjectOutputStream/writeObject(Object) and ObjectInputStream/readObject() combination. First, my server program: import java.net.*; import java.io.*; import java.awt.*; import java.awt.event.*; … | |
Is it possible to put a checkbox in the title bar of JInternalFrame? | |
What are some simple games that can be made using linked lists and only java? The simpler, the better | |
Since some of us might get a bit rusty with our coding, we constantly need projects to keep us busy, no matter how big or small. Making sure you code a little a day it not only fun but also allows your skills to continue growning. The problem though, is … | |
Hello, DaniWeb! Today I am in need of a Java Crash Course! Maybe a couple of (very short) source files with comments describing what things do? Any help is appriciated! I already know C++, how much does that help me? | |
what iam trying to do is get field parameter and run mysql query to update(decrement) value from field quantity, can any one tell me how to do that? <form method="post"> <table class="bordered"> <thead> <tr> <th>No</th> <th>Drug Name</th> <th>Strength</th> <th>Quantity</th> <th>Dis Qty</th> </tr> </thead> <% try { String query="select * from … | |
Hey everyone, I am learning recursion in Java and I have a lab to do. I have done the first part right, which is to draw those squares. The second part of it is to do the reverse of it, so left starts from the smallest square to biggest. I … | |
I have the following list of Integers (0,1,2,3) Now I want to write a method which returns specific number of pairs from the list. So if I give it 5 as argument I will expect it to return the following: (0,1),(1,2),(2,3),(3,0),(0,1) So basically when it reaches the end element and … | |
My eclipse id is taking too long time to open (at least 15 minutes) I tryed all the options in google search but the problem remains the same kindly give me tips to fix the problem thanks for your time | |
// random number generator var theDecimal = 0; function newProblem(){ theDecimal = Math.floor(Math.random()*256); //math.floor chops off decimals and rounds document.getElementById("startNumber").innerHTML = theDecimal; } | |
As a beginner java learner, I would be grateful if some people could point out a few open source projects with a high quality code base. Not necceserily aimed at a beginner, I would rather see a professional quality example, and preferabbly the project would use some common tools for … | |
![]() | I have already seen that someone posted this question a couple of years ago. I do not want any one to flat out give me the answer. I hav the code written, I just cannot figure out why the pattern won't look like this: 1 12 123 1234 12345 123456 … |
see this images what is incorrect in this examples ....... | |
Guys visit this site and please let me know what are the disadvantages of this website ....i am the new user..... **www.bjavaexpert.com** | |
I had a programme to write for college in Java. I have missed the class so I won't be getting marked on it but wanted to get it done as I have an exam next we. I am really stuck. I have to create a costInsurance () method taking in … | |
Hi All, I came across this question in Cathy Siera SCJP book and the answer is really Strange and i dont understand. The question is below. class A { } class B extends A { } public class Comingthru { static String s ="-"; public static void main(String[] args) { … | |
Having issues with array. Seems to pull in the enum files (month and average rainfall) and print accordingly. Also seems to read in the updated rainfall per month. However, problem is I can not make updated print with the enum. Also, last line in program has ..."actual[i]". If use a … |
The End.