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
~807 People Reached
About Me

IT Consultant

Interests
Triathlon
Favorite Forums
Favorite Tags
java x 6
Member Avatar for grussell

I want to convert a vector into a string array. I have put in my code: criteria = (String []) tokenVector.toArray(); I get a ClassCastExceptionError (I can understand why since Vector holds objects which are 'bigger' than strings) - and yet I cannot understand how to resolve it - any …

Member Avatar for masijade
0
312
Member Avatar for grussell

I have been experimenting with my Java problem whereby my JTable class was not calling getValueAt. I got it to call getValueAt by making sure getRowCount sent back the right value and then found that the Vector was empty. When the Vector comes back from the server it has a …

Member Avatar for Gargol
0
129
Member Avatar for grussell

I have a JTable displaying the results of user-defined searches which are sent back across the Client Server network. First off everything displays fine, but when I specify search criteria, nothing is displayed. I have printed out the vector containing the information at the client end and all the data …

0
93
Member Avatar for grussell

I have a CardLayout within which I have panels constituting each 'card'. However, the panels refuse, seemingly, to respond to my sizing requirements. doublePane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, comboPanel, lowerPanel); comboPanel.setSize(new Dimension(100, 600)); // totally ineffective lowerPanel.setSize(new Dimension(1100, 600)); JPanel displayPanel = new JPanel(); displayPanel.add(doublePane); displayPanel.setSize(1200, 600); mainPanel.setLayout(new CardLayout()); mainPanel.add("Main", displayPanel); …

Member Avatar for jwenting
0
100
Member Avatar for grussell

Sorry - my last statement of my problem wasn't too clear. I have all my panels and my CardLayout (as I originally wrote it), thus: private CardLayout wholeScreen = new CardLayout(); mainPanel.add("Main", displayPanel); mainPanel.add("Enquire", enquirePanel); mainPanel.setSize(1200, 600); getContentPane().add(wholeScreen); wholeScreen.show(mainPanel, "Main"); It comes up with this error: C:\myjava\TestClient.java:201: cannot resolve symbol …

0
65
Member Avatar for grussell

:sad: I have a CardLayout and a main panel to which I have added the panels I want to display. However, I cannot add the CardLayout to the JFrame using `getContentPane()`. I tried adding the application in which all my screen building takes place to `getContentPane()` but to no avail. …

0
108