Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~8K People Reached
Favorite Forums
Favorite Tags
Member Avatar for sincerelibran

Dear Friends, I have a frame which is a JSplitPane which is split horizontally into two. On the upper half I want a JFrame to appear and on the lower half I want a JTable to appear. I tired but couldn't get the answer correctly. Will anyone be able to …

Member Avatar for jouj
-1
734
Member Avatar for caswimmer2011

Hello, I am making a simple program that has you select Bible chapters and verses. I have all the chapters and verses in separate text files. I moved them into my source package. I am having trouble finding the code to put in the program so that java will open …

Member Avatar for vadayattu
0
217
Member Avatar for churva_churva
Re: GUI

[ICODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class MainFrame extends JFrame{ JMenuBar main=new JMenuBar(); JMenu menu1=new JMenu("File"); JMenu menu2=new JMenu("Search"); JMenu menu3=new JMenu("Display"); JMenu menu4=new JMenu("About"); JMenuItem exit=new JMenuItem("Exit"); JMenuItem pw=new JMenuItem("Piece Worker"); JMenuItem hw=new JMenuItem("Hourly Employee"); JMenuItem pcw=new JMenuItem("Piece Worker"); JMenuItem hrly=new JMenuItem("Hourly Worker"); JMenuItem author=new JMenuItem("Author"); JLabel …

Member Avatar for churva_churva
0
156
Member Avatar for LianaN

Hi! I would like to read XML file from my SWING application, however [ICODE]list.size()[/ICODE] returns 0. Why does it happen? Thanks! [CODE] private void open() { SAXBuilder builder = new SAXBuilder(); File xmlFile = new File(openedFileName()); try{ Document document = (Document) builder.build(xmlFile); Element rootNode = document.getRootElement(); List list = rootNode.getChildren("Panel"); …

Member Avatar for LianaN
0
837
Member Avatar for SeanC

Hi all, ive got a problem relating to the log4j.jar file (I suppose it would be the same problem regardless of what the .jar file is). I created a library based off the log4j.jar file, and the logging works and everything runs smoothly on my laptop. However, when I use …

Member Avatar for vealparry
0
119
Member Avatar for cozmo87

I have hundreds of text files with data sorted in 3 columns and an unspecified number of rows. The number of columns can increase in the future, but will always be equal for all files. I want to combine these data into a single file with all the columns put …

Member Avatar for vealparry
0
132
Member Avatar for WolfShield

Hey guys! This is the code for a program I started today: [code=java] /* * IdeaCaptureMain.java * * Created on Jan 25, 2011, 4:33:45 PM */ package Idea; /** * * @author WolfShield */ public class IdeaCaptureMain extends javax.swing.JFrame { /** Creates new form IdeaCaptureMain */ public IdeaCaptureMain() { initComponents(); …

Member Avatar for vealparry
0
97
Member Avatar for Gsterminator

How do i call back a variable in void method into the main method?? [CODE]public void multiply (int x) { Vector3 v3 = new Vector3(num1*x,num2*x,num3*x); }[/CODE]

Member Avatar for Gsterminator
0
167
Member Avatar for Sonny101

Hi, Sorry for my ignorance but the problem I have is probably so simple that I cannot seem to find an answer for it. I am just learning about the Java.Util Package but in following my course module I am getting an error. here is the simple code : [CODE]import …

Member Avatar for Sonny101
0
133
Member Avatar for LianaN

Hi! I would like to create a button for deleting all JLabel components on JDesktopPane. My code is shown below. The error message is shown below the code. For instance, let's say there are 3 JLabel components (the 4th is not JLabel). In this case, only 2 of 3 JLabel …

Member Avatar for LianaN
0
125
Member Avatar for muloki

I'm writing an application using jdbc connection to access and want display a sql query using the number of rows found to declare an array of JTextFields. Not only does nothing display but also getting an Error: java.lang.ArrayIndexOutOfBoundsException: 00. Can anyone help please. [CODE] private void selItActionPerformed(java.awt.event.ActionEvent evt) { // …

Member Avatar for vealparry
0
174
Member Avatar for muloki

I,ve set up a JTable and want to populate it from an Access database useing jdbc odbc. The data returned is placed into an array but my problem is how to use the array results with... jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {list[0], list[1], list[2], list[3], list[4]}, }, new String …

Member Avatar for vealparry
0
4K
Member Avatar for forfreaks

[code] class trans { int m,n,l=0,k=-1,total,no=0; void det(int t) { total=t; } char[][] s5=new char[total][total]; char[][] s6=new char[total][total]; //rot90 public int rot90 (char[][] s2,char[][] s3) { for( m=0;m<total;m++) {l=0; for(n=total-1;n>=0;n--) { //[B][COLOR="Red"]line33[/COLOR][/B] s5[m][l]=s2[n][m]; [COLOR="Red"][B]\\Exception in thread "main" \\java.lang.ArrayIndexOutOfBoundsException: 0 \\at trans.rot90(gift1.java:33) \\at gift1.main(gift1.java:208)[/B] [/COLOR] l++; } } if(s5==s3) { return …

Member Avatar for vealparry
0
104
Member Avatar for rohit2

I am new to java Swing. I am trying to develop a tool, in which I used a Jtextpane as an editor. Jtextpane is enclosed in a Jtabbedpane to meet my requirement. But I have inserted the JTextpane in a Jscrollpane and then to the Jtabbedpane. Now, when I select …

Member Avatar for pbl
0
100
Member Avatar for blueman:-0

any one can help me to mean how i create a bitmap because the examples in net is very difficult and i can't mean any thing of this (sample examples plz )

Member Avatar for Ezzaral
0
60
Member Avatar for scobi

/*Here is my code as you can see the in front of rice set the four RadioButton in different Location? i have been tired but i can't solve this problem .Help me Please if u can.*/ import java.awt.*; import java.awt.event.*; import javax.swing.*; class Fnf{ static Box createBox(String[] sa) { Box …

Member Avatar for vealparry
0
453
Member Avatar for rohit2
Member Avatar for rohit2
Member Avatar for vealparry
0
86
Member Avatar for Janu Sam

Hi, I am new to Java Swing. I am trying to develop a GUI for my tool, which consist of a JTextPane which is enclosed in a JScrollPane and to meet my requirement I am using a JTabbedPane for holding this textpanes. In the right side of the GUI I …

Member Avatar for vealparry
0
136
Member Avatar for FerrousRex

I've been trying to find a library that will either let me display a .ppt file or an .odp file, but I've not really been able to find either so far. I've already tried the Apache POI library, but it only lets me display an image of the PowerPoint. If …

Member Avatar for vealparry
0
102