32,204 Topics
| |
how to make a bean application scoped so that it will persist as long as the web application is running??? and how can we access it in our controller?? thank you | |
Hi Everyone, I'm doing a 2D PAcman in Java. Can anyone tell, why the screen gets mess up when I display the moster. I simply use set bound enemy.setBounds(x1,x2,50,50); How do I manage to include the monster without destroring the scren. Many thanks. | |
Hi All, I have a question. Is adding/filling range numbers to an ArrayList possible in java?? Like this: {<12345, 13455>, <12745, 13755>, <2345, 2755>, <5345, 9455>, <2700, 5240>, <345, 13455>, <11345, 13000>} You can think of these like time segments. Here is the class to give you brief idea import … | |
I am geeting syntax errot insert while ( expression ) to complete Do statement. Please help...Below is the complete coding in Webdriver. @Test public void testUntitled() throws Exception { driver.get(baseUrl + "eforms/admin.aspx"); driver.findElement(By.cssSelector("button.gskButton")).click(); new Select(driver.findElement(By.id("ctl00_PersonSearch_CountryList"))).selectByVisibleText("Russian Federation"); driver.findElement(By.id("PersonSearch.SearchFor.Person.gskPreferredName")).clear(); driver.findElement(By.id("PersonSearch.SearchFor.Person.gskPreferredName")).sendKeys("slawomir"); driver.findElement(By.id("btnPersonSelectSearch")).click(); driver.findElement(By.id("btnPage1")).click(); driver.findElement(By.id("sys44708")).click(); new Select(driver.findElement(By.id("ctl00_pageBody_Form_ID"))).selectByVisibleText("Expense Report"); driver.findElement(By.xpath("(//button[@type='button'])[2]")).click(); // ERROR: Caught exception [ERROR: … | |
I am Using tablecellrendere for a table to add a JPanel at the fourth column.... It is adding to all ..... But i want to add a textfield at first row only.... | |
how can i come up with a code in java that shows the number of apartments in a block, the number of blocks in the estate and AT the same time show the cost of renting an apartment the name of the tenant in the apartment and how i can … | |
Hi All Kindly assist am having issue with the following code, where did i get it wrong? Only the first Block condition is execute, even if B<PA, the second block does not execute. Am using Netbean PA =((1.1 * P2) / (1.46 * P3)); B = 3 * P4; D … | |
Hey Guys, What i want it to do : 1. Combobox is displayed with a list of countys ie Limerick Dublin Cork 2. Choose County brings up second Combobox with countys towns and villages. 3. Hit search brings up relevant towns and vilages from the county chosen. What it does: … | |
Hi, I was working on an application but i'm stuck at a point now.. I'm able to send the chat messages but unable to receive any... I have two threads, 1 for sending message and another for receiving but receiving part isn't working! I think the problem is with multithreading! … | |
Hello everyone. I'm having trouble about Internal JFrames as my code is compiling but it doesn't run. Can someone give me an advice as to how to make it work? Also the reason why I wanted to make internal JFrames is that I'm using layout managers on my panels so … | |
Hello, Am new in Struct I followed link http://www.tutorialspoint.com/struts_2/struts_examples.htm for making simple hello project in struts using eclipse but when i complete the coding and go for the execution, when I write the word in that box as an input (for saying hello). and click on Say Hello button, it … | |
Hi All, I have just finished reading fundamental topics in Java and now i have decided to do a New Project in Java which comprises all basic features of Java. I need help in Understanding/visualizing the architecture / Design model for my Project. Specification is : 1 . Develop a … | |
hello all i need to fetch data from two column let me tell how i like to fetch this,i have two table first column is **ledger** in which there is **groupname,balance**.now in seconed table whic name is **groupcreate**,here is **under and name column** heare you *****can create your own group … | |
First off this is for my little server, and i am having a problem. this is saying im missing a statment but i dont see how. if you can take 5mins to look over this and tell me what you see i did wrong, it will make my day. look … | |
I have a JLayered pane that has a large sized JLable that is showing an image that is used to show a background image. This is on the default layer. Inside I have many items such as lables, textfields, tables and other such things. These are set for the pallet … | |
Hi everyone, I consider myself as a java beginner because I haven't been involved in a lot of projects. I'm opening this thread to raise awareness that we don't have java projects thread primarily for beginners and it could help advanced java programmers in terms of practising their java knowledge. … | |
I am an IT graduate willing to learn java, can anbody help me how to get the syntax write please | |
Can anyone help me get my output to display in my textArea? When I click the button, when the program is running, it wll display console output since I am using System.out.printf, but now I want it to show in my GUI. Any help would be appreciated. Thank you. | |
Hi Sorry I am posting again. I am trying to make a web form for my new website. I am doing the coding myself because I cannot afford to hire a coder for me. I need some help from you. Please forgive me for all my idiotic questions! Now, here's … | |
Hello, I have recently started to develop my own game in Java and am just starting to get the hang of it. I've watched various tutorials on making an engine etc and have picked up quite a lot. I am struggling with one problem though, I have a world and … | |
I need help making this to display the results into a Jframe GUI instead of a console im failry new to java so please help me thanks, here is the code ive used: import java.util.ArrayList; public class ThreeArrayLists { public static void main(String[] args) { ArrayList priceList = new ArrayList(); … | |
Hi Programmers, Am working on a project, event made me completely lost touch with Coding, but now i want to be back fully. Am trying to get an OUTPUT using if/if else statement, my code has no errors but does not return result either, Any help or idea on what … | |
Hello, I am trying to create an MDI application and am having problems with one of the frames. Walking through the errors, the first error points to a list generated by Netbeans code that I think is the null problem. When I look further down the error list, I get … | |
I am a beginner in java does not know much about it. But to practise it I have tried to simulate the popular game Hangman using simple methods.Please Guide me with the code In this program the words are given by the user and then they are converted in to … | |
I have java tcp socket programming...... In that i need to send a file from client to server .... at the same time i need to chat with that client ...... by what way i can do this ... | |
i want to add scroll bar to scroll this page..this page is user log-in form... to add more fields i have to add scroll bar how can i do so ..pls help package user; import java.awt.Color; import java.awt.Container; import java.awt.Font; import javax.swing.*; public class form extends JFrame package user; import … | |
is there a function for: ex1: String = "2+2.3/34" output: double = 34.0 ex2: String = "45/4+3-0.4" output: double = 0.4 so, find the last operator and take the next number into double. note there are no spaces. | |
Hello, I am taking Java fundamental course and I've came up with a confused character i.e # on assigning variable name on Java lately. I have surfed the internet a lot but all I could find is only oprerators, keyword and reserved words are not allowed. so why is # … | |
How to parse a string data " B. Prakash 98400 51038 B.M. LAL BROS., TYRjijbEALERS 3 Whites Road, Royapettoh,thennai r 600 014. Ph: 2852 4560 Fax: +91-44-2858 8306 Email: bmlalbros@etn.iiet'" conisder this is my string data and i need to fetch name, address, phone , email seperately is there any … |
The End.