473,385 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

get java class loader within pathon

Hi, I have a java application with a UI compoennt of
FlyoutPaletteComposite (an GEF class), this UI compoennt displays a
scrollbar when needed. I am writing a Jython/Python script, and within
this script, I want to grab the scrollbar and move the bar up and down
to a specified location. I was told to get the class loader of the
compoent, but don't know how to do it. Can anybody kindly help?

Holly

Nov 11 '07 #1
2 1332
blueblueblue2005 schrieb:
Hi, I have a java application with a UI compoennt of
FlyoutPaletteComposite (an GEF class), this UI compoennt displays a
scrollbar when needed. I am writing a Jython/Python script, and within
this script, I want to grab the scrollbar and move the bar up and down
to a specified location. I was told to get the class loader of the
compoent, but don't know how to do it. Can anybody kindly help?
FlyoutPaletteComposite.getClass().getClassLoader()

Diez
Nov 11 '07 #2
Diez B. Roggisch schrieb:
blueblueblue2005 schrieb:
>Hi, I have a java application with a UI compoennt of
FlyoutPaletteComposite (an GEF class), this UI compoennt displays a
scrollbar when needed. I am writing a Jython/Python script, and within
this script, I want to grab the scrollbar and move the bar up and down
to a specified location. I was told to get the class loader of the
compoent, but don't know how to do it. Can anybody kindly help?

FlyoutPaletteComposite.getClass().getClassLoader()
Oops. That should be

FlyoutPaletteComposite.getClassLoader()

of course. The above should work for an instance of FlyoutPaletteComposite.

Diez
Nov 11 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Fu Bo Xia | last post by:
the java.lang.Object.forName method takes a java class name and returns a Class object associated with that class. eg. Class myClass = Object.forName("java.lang.String"); by if i only know the...
0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
13
by: Nicholas Pappas | last post by:
Hello all. I am trying to write a Java3D loader for a geometry file from a game, which has Unicode characters (Korean) in it. I wrote the loader and it works in Windows, but I recently brushed...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
7
by: Adam Duszenko | last post by:
I'm trying to create and use Java singleton inside Java UDF just as Mr Knut Stolze described in http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0404stolze/index.html .. But I've...
1
by: jaimemartin | last post by:
hello, I want to validate an xml by means of a schema (xsd). To do that first of all I´m using a SchemaFactory. The problem is that if I run the code in Windows all works fine, but If I run it in...
0
by: ycinar | last post by:
hey all, i am working on a Java project using JBuilder.. when i build my code its fine, but when comes to run, it doesnt run and displays the following logs.. i think there is JDK conflict.. ...
12
by: brey_maastricht | last post by:
Dear all, I'm trying to rewrite a Java program into C++. The Java programm works fast but I hoped that C++ would even be faster. But that is not the case ! (to be complete: both the Java and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.