- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 6
- Posts with Downvotes
- 6
- Downvoting Members
- 4
i am a very simple guy just concerned with my work n i like to learn new in programming.
- Interests
- i like to play basketball....n search for new stuff on net
- PC Specs
- as per the computer i will go wid dell......n os the best forever the windos xp...service pack 2
37 Posted Topics
Re: i cant give you the code but i can tell you how to retrive data from database. you can take help from the following example. 1.the user enter the table name on the web page the coding is given below [CODE] <html> <head> <title></title> </head> <body bgcolor="green"> <center> <form name="f1" … | |
![]() | Re: Hi AliQadir, One option for this is you can first store the excel values in datatable and then check the columns rows for null values before binding the data in gridview and once you get the null value eliminate that particular row. |
Re: can u properly indent your code.Its quite confusing. | |
Re: Hello its possible to run when you create a java file in netBeans it creates a folder of that file. you will see a scr folder click on that inside u will see java folder where u can see your java file.so just open ur console give the path example … | |
Re: Try using it in a Table to make proper alingments in your designing page i normally use Panel so that i can set the panel widht so that if i apply a table to it thn it get fixed in the panel area it wont extend | |
Re: on button Click you can fetch the original password value from the database store it in a variable and once you get the value run a if else loop where u can check the current password with the value fetched from database and if the condition succeeds then execute the … | |
Re: There is no need of posting a Web.config file the errors is in your designing page try removing the <strong> keyword from your design.i would suggets you to use a label instead of directly writing on page. Regards, Karan | |
Re: Can u elaborate a bit to make us understand. As in what is required .And for which control you have wrriten a code of ValueChanged.? | |
Re: i dont know whether we can convert .jar into .exe but for my recent java project i have tried to convert my .jar file into .bat which is similar to .exe file. you can do it by writing the code in notepad and save it as [filename].bat [CODE] java.exe -cp … | |
Re: it is possible to convert your java file to not excatly a exe file but a similar one .bat file.which works the same as exe. first u have to convert your java file to jar file . thn after making a jar file open a notepad n just write the … | |
Re: you have given a ; after main that was wrong and your 17th line also contains errors it is written like this [CODE] Scanner inFile = new Scanner(new FileReader("inData.txt")); [/CODE] and i hope the below code has solved your problem [CODE] import java.io.*; import java.util.*; class Ch3_PrExercise1 { public static … | |
Re: There was two mistakes there was no applet code u have specified and there was no main method declared in it i think the below code must have solved your problem [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; /*<applet> <applet code = MenuDemo width = 400 height = 400> </applet> … | |
i have made this code which displays all the values in JTable can any one help me out how to get report of those data.this code is just the module of my library project .Now i want to generate a report for it . [CODE] import java.awt.*; import java.awt.event.*; import … | |
Re: you can use for loop to collect all the values from JTable i have used this for my project hope this may be helpful to u [CODE] for(int i1=0;i1<rows;i1++) { rs.next(); for(int j1=0;j1<8;j1++) { data1[i1][j1]=rs.getString(j1+1); } } JTable table=new JTable(data1,Colheads); int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED; int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED; JScrollPane jsp=new JScrollPane(table,v,h); getContentPane().add(jsp); [/CODE] | |
I have made a program in c# where the user will input some data and that program should prompt the user to specify the date to view all the appointments of that day.i have made the code but still the problem lies is i can only find that the date … | |
Re: i think with notepad you cant do a proper indentation that may confuse you while you doing your project and it may even consume lot of time to read where the errors have come or to identify the brackets{also called limiters} when i did my project i used JCreator its … | |
Is it possible to add a flash content in java.Can any one help me how to do it or just a hint from where i can get help for it. Thank You in advance. | |
Re: Mac OS X provides built-in support for Java applets. You don't have to do anything special to set this up--just run Netscape under OS X and you should be able to run the BioViews applets. The best browser for running Java applets is Internet Explorer 5.1 or above. You can … | |
Re: ok make a jar file of ur java file. then create a batch file of your jar file. google will be the best option for help. | |
| |
Re: ha try to make project on "HOW TO CONTROL GLOBAL WARMING"....:-) never used by anyone till now. | |
[QUOTE] Hello friends i have tried my code to get the values from the database n display it in JTables but i am getting two errors.please help me. [/QUOTE] [CODE] import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.JButton; import javax.swing.table.AbstractTableModel; import java.awt.Dimension; import java.awt.Component; import javax.swing.BoxLayout; import java.text.MessageFormat; … | |
Re: you can use this code instead of adding one by one class file jar cmf SMTPClient.jar *.class *.class will collect all the class file which is been created by your java file. i hope this code will help you. | |
Re: Can you post the code you're using at the moment...? Otherwise I have no idea what to suggest. | |
Hello friends i have spend a week to make a notepad.But i have one error in it i dont know where i am wrong . i am not able to add JFileChooser in my notepad i have JFileChooser in my code but its not working properly that's why i have … | |
Re: you can take the help of AWT and SWING for making a java gui.you can take the help from the tutorial on Dani Web | |
Re: can you just elaborate more where you are finding the logic error..? | |
Re: the above code line # String sURL = "jdbc:mysql://studdb-mysql.fos.auckland.ac.nz/<DATABASE_NAME>"; is quite complicated to understand you can take the help from the following code i hope this may help you. [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.sql.*; import java.io.*; public class Login extends JFrame implements ActionListener { … | |
Re: i dont know this may help you or not but i had used this method to delete a record from a database using JOptionPane example [CODE] int reply = JOptionPane.showConfirmDialog (this, "Do you really want to Delete\nthe " + txtMemberName.getText () + " Record?", "LibrarySystem - Delete Member", JOptionPane.YES_NO_OPTION, JOptionPane.PLAIN_MESSAGE); … | |
Re: i think so the best source for running the servlet is the netbeans.Using tomcat is just a waste of time.NetBeans will help u build servlet faster and in an easier way. | |
Re: don't make your code more complicated try out some simple coding like the code given below to store the values into database. [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.sql.*; import java.io.*; public class Login extends JFrame implements ActionListener { JTextField txtname; JLabel lblname,lblpass1,lblpass2; JButton btnok,btncancel; JPasswordField … | |
Re: i have tried this code hope this may help it quite complicated but still it will help [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.sql.*; import javax.imageio.ImageIO; import java.awt.image.BufferedImage; import java.awt.Dimension; import java.io.IOException; import java.util.Date.*; public class report extends JFrame { PreparedStatement ps; Connection con; ResultSet rs; … | |
Re: the best way to create a .bat file which is similar to exe .First create a jar file.n then i same location where your jar file is stored create a notepad file with .bat extension then write the following code in notepad. example java.exe -cp l.jar;. splashfrm | |
Re: can u just show us till where you have done your code so that we can help you.. | |
Re: Hello can u just tell what all errors your are getting so that we can help you and please use code tag for posting your code. |
The End.