Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~11.0K People Reached
Favorite Tags
Member Avatar for curtissumpter

[code=java] final String cardListStrings[] = {"First Card", "Next Card", "Previous Card", "Last Card"}; cardList = new JList(cardListStrings); cardList.setVisibleRowCount(4); cardList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); cardList.addListSelectionListener( new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { System.out.println("Inside List Event Handler"); if (cardList.getSelectedIndex()== 0) { cardManager.first(deck); System.out.println("First Card"); } if (cardList.getSelectedIndex()== 1) { cardManager.next(deck); System.out.println("Next Card"); } if (cardList.getSelectedIndex() …

Member Avatar for DavidKroukamp
0
219
Member Avatar for curtissumpter

[url]http://www.swell.com/Guys-Shoes[/url] At this site (address) when the onmouseover event is fired it zooms in automatically to a closeup of the shoe. What technology is this? It's also used when you click on the shoe, i.e. [url]http://www.swell.com/Guys-Shoes/ZOOM-CUSH-WAKE-SHOE?cs=BR[/url] and the user clicks on the image of the shoe and it is displayed …

Member Avatar for matthewl
0
92
Member Avatar for curtissumpter

Hi, There is too much space between the Organized in / Pioneered by text and the Text Input Areas. How do you shrink this amount of space? [code=html] <html> <head> <title>Prefecture History and Facts</title></head> <body><h1>Prefecture History / Facts</h1><hr> <table> <tr> <td>4th Prefecture of New York State, U.S.A. </td> <tr> <td …

Member Avatar for daggerpound
0
103
Member Avatar for curtissumpter

Hello, I have this piece of code. [code=java] private Vector getColumn(ResultSet rs) throws SQLException { Vector row = null; ResultSetMetaData rsmd = null; boolean moreResults = rs.next(); if (moreResults) { row = new Vector(); rsmd = rs.getMetaData(); do { switch(rsmd.getColumnType(1)) { case Types.VARCHAR: row.addElement(rs.getString(1)); System.out.println(rs.getString(1)); break; case Types.INTEGER: row.addElement(new Integer(rs.getInt(1))); …

Member Avatar for masijade
0
126
Member Avatar for curtissumpter

Hello, I have this piece of code. Help with Code Tags java Syntax (Toggle Plain Text) [code=java] private Vector getColumn(ResultSet rs) throws SQLException { Vector row = null; ResultSetMetaData rsmd = null; boolean moreResults = rs.next(); if (moreResults) { row = new Vector(); rsmd = rs.getMetaData(); do { switch(rsmd.getColumnType(1)) { …

0
61
Member Avatar for curtissumpter

I wrote this simple java program to test the repaint mechanism in Java for my Eclipse IDE (not that it works on XCode either). The repaint() mechanism is not repainting, it does not erase the code previous to it in the graphic. It should according to everything I've read. Help …

Member Avatar for toucan
0
3K
Member Avatar for curtissumpter

[code=java] class ListToolsFrame extends JInternalFrame { JLabel titleLabel; JButton exitButton; JTextArea outputArea; RandomAccessFile rafFile; ListToolsFrame(RandomAccessFile raf) { StringBuffer buf2; rafFile = raf; try { rafFile.seek(0); } catch (IOException e1) { System.err.println("rafFile.seek(0)"); } JPanel jp = new JPanel(new BorderLayout()); buf2 = listTools(); titleLabel = new JLabel("List Of Tools"); exitButton = new …

Member Avatar for curtissumpter
0
573
Member Avatar for curtissumpter

Hey, Any suggestions on how to stop a IOException: Negative Seek Offset problem? -- Curtis

Member Avatar for stephen84s
0
45
Member Avatar for curtissumpter

Hi Guys (and Girls), Problem: Negative seek offset with respect to a RandomAccessFile's seek method. [code=java] private void writeRecord() { String v[] = inputUI.getValues(); raR = new RaRecord(Integer.parseInt(v[GeneralUI.RECORD]), v[GeneralUI.TOOLNAME], Integer.parseInt(v[GeneralUI.QUANTITY]), Double.parseDouble(v[GeneralUI.COST])); try { file.seek(raR.getRecordNumber()-1 * RaRecord.size()); } catch (IOException e1) { e1.printStackTrace(); } try { raR.write(file); } catch (IOException e) …

0
75
Member Avatar for peedi

Hello im kinda of new to java and i am stuck on a program. I want to take a word as input and display it in reverse. ex - hello to olleh I tried to do the For loop but i am kinda of stuck. Can anyone please help me! …

Member Avatar for rameshrajamani
0
5K
Member Avatar for curtissumpter

Hi people, Yeah, so I have an application that works. The code is not buggy and I have worked hard on it. It is three files long but the section I need help with is small. It is the paintComponent section. It is a multi-threaded application and if you want …

Member Avatar for curtissumpter
0
123
Member Avatar for curtissumpter

Hi, I currently use Eclipse as my IDE. I'm looking for instructions on how to integerate my Java code with HTML in the Eclipse enviornment or what IDE I can use in conjunction that will allow me to do so. Any advise would be appreciated. -- LiveWire

Member Avatar for peter_budo
0
66
Member Avatar for curtissumpter

Hi, Everything else in this code works properly but the keyTyped method is not working properly. I have been working on this for sometime. Any help would be appreciated. Also, any advice on getting my southPanel to appear when I start the application? It appears but only after I expand …

Member Avatar for sciwizeh
0
135
Member Avatar for curtissumpter

Hi People, I am trying to run this file but I am having trouble getting the program to incorporate the gif file that I need. Here's the program. // Demonstrating JDesktopPane import javax.swing.*; import java.awt.event.*; import java.awt.*; public class DesktopTest extends JFrame { public DesktopTest() { super("Using a JDesktopPane"); JMenuBar …

Member Avatar for danielernesto
0
865
Member Avatar for curtissumpter

Is it safe to assume that any object that is preceded with the letter 'J' is a member of the Swing package? Just trying to get lightweight versus heavyweight components sorted properly. Thanks. -- Curtis

Member Avatar for verruckt24
0
85
Member Avatar for curtissumpter

Hi, I'm having trouble with using and updating graphics in a JFrame. I'll include my code below along with some classes. They're necessary for the program to work properly. The issue is that the paint method is painting over my UI. Then it won't display the graphics. I don't have …

Member Avatar for Ezzaral
0
989