Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 29th, 2008, 06:15 PM
sss sss is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 1 sss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 53 sec
Reputation Power: 0
New to Java - problem with get method

I am trying to read a variable that is inside a public modifier by calling a get method from a private modifier and its not being recognised. Is it not possible to do this? here is the code:

public static Color DrawJapplet2 () {
Color c;
JFrame framename = new JFrame();
JColorChooser colorChooser = new JColorChooser();
Color chosen = colorChooser.getColor();
return (Color)chosen;
}
private void ccButtonActionPerformed(java.awt.event.ActionEvent evt) {

Color colour = JColorChooser.showDialog(this,
"Choose Background Color",
Color.BLACK);

}

private void picturePanelMouseClicked(java.awt.event.MouseEvent evt) {
Graphics g = picturePanel.getGraphics();

Color selection = getChosen;this is where my problem lies
int shape = (int) shapeComboBox.getSelectedIndex();

int.......

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > New to Java - problem with get method


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway