32,199 Topics
| |
My problem is when I open new activity when pressing button an error accoutred "Unfortunately, ISPcheck has stopped". Here is my MainActivity.java button click event code: public void btnLogin_OnClick(View view) { startActivity(new Intent(MainActivity.this, PersonInfo.class)); } Here is button xml code in activity_main.xml: <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="تسجيل الدخول" android:id="@+id/btnLogin" android:layout_marginTop="72dp" android:textColor="#ffffff" … | |
Hi all. What im trying to accomplish is to get strings from within a string. These strings are seperated with "//*//" an example would be String ExampleString = ("//*//helle//*//goodbye//*//1965//*//this is an example//*//the end"); then I would like to seperated into seperate strings. hello goodbye 1964 this is an example the … | |
Hie guys I am prety new to JSF and Iam working on some peice of code. I am using primefaces components and JSF backed beans. Here are a list of my questions; 1. Is there a way of running a method each time a page loads. 2. During page load … | |
Write a program that will swap two values stored in location X and Y. For example if the initial values were X=2 and Y=5 then after the execution of your program the stored values should be X=5 and Y=2. in mariesim | |
ClassNotFoundException:com.mysql.jdbc.Driver | |
Hello, me again :-). This time I need to build a small calculator-like GUI, like this: ![3c9bdedf8ee9380da461586266ce3130](/attachments/large/2/3c9bdedf8ee9380da461586266ce3130.png "3c9bdedf8ee9380da461586266ce3130") This time I thought I'd ask a few questions before I start building it! 1)In terms of layout, I was thinking to use the GridLayout again: one for the text field and … | |
Hi, I am making a song player in java with playlist functionality. I got my mp3 songs running all right. What i basically do in my player is search a folder for mp3 files and then add all to the playlist. Till here, it's fine and doing good. But the … | |
hello, i am trying to set the allignment of my slected data which i get in my text area.. can anyone help??? | |
hi, I want to display only the user id and the name in jList and when the user select something from the jList detailes of that person will be display in a lable can you explain to me how to do it.. I've managed to display all the deatiles of … | |
Hi you all... im a diploma student... im not very good at java programming.. i hope u all can teach me a bit bout this subject.. i dont want to carry this subject :3 ... kinda blurry.. lecturer kinda teach theory... sooo... i attacht word.doc... | |
Hello good day. Here is my problem: I have retrieved some a couple sets of data from my sql database and saved them in ArrayLists of (custom)types <Student> and <Subject>. I am using a single Table. I want to create a custom AbstractDataModel that displays the data from the ArrayList<Student>. … | |
Hi all, How to convert an pdf file to html in Java? Currently all my data is generated into a report in pdf and i want to be able to generate it to html page as well. How to go about implementing this, is there any source code in java? … | |
I'm creating a Web-based label printing system. For every label, there should be a unique s/n. So when a user decided to create 1000 labels (with the same data), all of it should have unique s/n, therefore the pdf will have 1000 pages, which increases the file size. My problem … | |
Hello everyone, I am doing an assignment that requires me to create an application that manages a student records database. They gave me the option to use a GUI or console application so I am making it a console app. The task requires that we use the abstract class pattern. … | |
Hello to all, I have following simple Applet program. import java.applet.*; import java.awt.*; public class myapp1 extends Applet { Label l1, l2, l3, l4; TextField t1; TextArea t2; Checkbox c1,c2,c3,c4,c5,c6; CheckboxGroup cg; Button b; public void init() { l1=new Label("Enter your name: ", Label.RIGHT); t1=new TextField(20); l4= new Label("Enter your … | |
Hello guys, I have built another small GUI: ![c91be0d75e981f9b7ed81b89898a1722](/attachments/large/2/c91be0d75e981f9b7ed81b89898a1722.png "c91be0d75e981f9b7ed81b89898a1722") Even before knowing whether the layout of the application I have built is right, I am facing another big problem. At compiling time I get the following error: Note: Dropdown.java uses unchecked or unsafe operation Note: Recompile with -Xlint:unchecked for … | |
Hi all I am currently learning Java (and Fortran!) on my own. I have written the following code but for some reason it does not work as it should import javax.swing.JOptionPane; class evenOdd { public static void main(String[] args) { String number, ans; int num; do { number = JOptionPane.showInputDialog(null, … | |
| |
I have person class with id , first name and last name I have get and set methods in main I wrote this when I try to search for something in array list I always use .equal when I tried .equal without the ! it give me nothing , but … | |
I am working on a project in BlueJ which I have to add an "Event Post" to a simple social network project. I have created the project but I am unsure how to take a string, such as "message", from a subclass of the Class Post and print it the … | |
Hello guys, I hope you can help me with this. I have read a bit about GUI and now I am trying to do a few exercises to consolidate what I have read. In the first exercise I have to reproduce a simple GUI. Well I thought it was simple… … | |
This code is working but i want my added words to show in vertical because its output is shown in horizontal if two or more words is inserted. Can you help me to improve my program? Here are the codes... /** * Write a description of class Stacks here. * … | |
I want rich textbox control in java in nebeans, where i can able to paste content from documents. Here content means not only plain data but also tables from ms-word documents. I tried above feature using "jeditorpane" but i am unable to retain table structure. please suggest me how to … | |
hey i need help once i run it will proceed to next one it will show error message package test1; import javax.swing.JOptionPane; public class Test1 { public static void main(String[] args) { int counter; int counter1=0; int counter2=0; int counter3=0; int counter4=0; JOptionPane.showMessageDialog(null,"Welcome"); for(counter=0;counter<20;) { int num1; String firstinput = … | |
i need help on rsa encryption and decryption using digital signatures on text files only | |
I have jList and DB the DB have first name , last name , id and email the jList will only display the first name , last name and id what I'm trying to do is when the user select item in the jList the email will appear in the … | |
Hi, sorry for posting a second thread for the same project but as far as i can tell, the issue is completely different. My Netbeans project seems to be working with a "cache" of a certain class. It seems like this because I commented out all the code in that … | |
I'm making a messenger app and I need to know how to set up connections so that somebody could send messages to other via WI-FI.I googled a little and I find something at this page [Click Here](https://code.google.com/p/simple-android-instant-messaging-application/source/browse/trunk/src/com/mekya/communication/SocketOperator.java)but I don't understand it.Here is my main class/StartingPoint (all my code is just … | |
I'm doing an application in which I have to show a sequence of pictures: The sequence is the follow: A red X has to be shown for more or less 400 milliseconds; An image called "Screenshot" has to be shown for more or less 500 milliseconds; An image called "Noise" … | |
I am working on a basic classified ad system that when used prompts the user with several questions. The user input answering those questions is then printed out when the user enters a show command. I am trying to figure out a way to store the previous input while still … |
The End.