No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
If i create an object in Class1 and save some data in that object in Class1, how can i access that same data in Class2? Here's a code sample that should clarify my situation: Class1.java: public class Class1 implements Runnable { public ClientArray ca; public Class1(int port) throws IOException { … |
|
I need to run a javascript page from my app and receive the page that results from the script on a String. This is my code: [code=java] try { URL testurl = new URL("http://www.site.com/page.html"); try { String s=testurl.getContent().toString(); System.out.println(s); } catch (IOException ex) { Logger.getLogger(App.class.getName()).log(Level.SEVERE, null, ex); } } catch … |
|
I have URL like this: [code]http://www.site.com/app/index.html#secret_code=gagh362%%23atg._f46&other=5449[/code] I need to pass gagh362%%23atg._f46 part to a string. All the examples i find are for simple PHP parameter parsing and i'm having difficulties to adapt them to this case. Can someone help? |
|
I have several buttons in my applet, however in certain case i use fillRect function to draw my whole applet go black, but i want to leave one Jbutton visible. The fillRect function hides my button, but the button comes visible if i move mouse cursor on top of it. … |