Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!

twin yan

Greenhorn
+ Follow
since Oct 07, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by twin yan

hi all ,
i made a viewflipper that switches a part of the screen with a diffrent layout on scroll , i added an animation but it accures after you finish the scrolling ,
is there anyway to make the view flipper show a little of his next item until the user scrolls enough(>%50) and then it would switch to the next , much like the gallery on android i think


thanks to all helpers !
6 years ago
:28:02 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
אוק 08, 2014 6:28:02 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.3.4.Final}
אוק 08, 2014 6:28:02 PM org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
אוק 08, 2014 6:28:02 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
אוק 08, 2014 6:28:02 PM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
אוק 08, 2014 6:28:02 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
אוק 08, 2014 6:28:02 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
אוק 08, 2014 6:28:02 PM org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
אוק 08, 2014 6:28:02 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
WARN: HHH000402: Using Hibernate built-in connection pool (not for production use!)
אוק 08, 2014 6:28:02 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000401: using driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] at URL [jdbc:sqlserver://.database.windows.net:1433;databaseName=COMPUTEDBET]
אוק 08, 2014 6:28:02 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000046: Connection properties: {user=host, password=****}
אוק 08, 2014 6:28:02 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000006: Autocommit mode: false
אוק 08, 2014 6:28:02 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 20 (min=1)
אוק 08, 2014 6:28:04 PM org.hibernate.dialect.Dialect <init>
INFO: HHH000400: Using dialect: org.hibernate.dialect.SQLServerDialect
אוק 08, 2014 6:28:04 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
אוק 08, 2014 6:28:04 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>
INFO: HHH000397: Using ASTQueryTranslatorFactory
Exception in thread "main" java.lang.NullPointerException
at org.hibernate.dialect.function.SQLFunctionRegistry.findSQLFunction(SQLFunctionRegistry.java:59)
at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.findSQLFunction(SessionFactoryHelper.java:387)
at org.hibernate.hql.internal.ast.tree.IdentNode.getDataType(IdentNode.java:343)
at org.hibernate.hql.internal.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:172)
at org.hibernate.hql.internal.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:923)
at org.hibernate.hql.internal.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:691)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:663)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:299)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:247)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:278)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:206)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:158)
at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:126)
at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:88)
at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:190)
at org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:301)
at org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:236)
at org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1800)
at main.tesst.main(tesst.java:38)



i meant the names of the columns are correct , it seems the problem is somewhere in the productAttribute.id which is a forigen key
hello ,
i'm trying to make a query using the forigen key



is one of the tries i made , all tries ends up with

INFO: HHH000397: Using ASTQueryTranslatorFactory
Exception in thread "main" java.lang.NullPointerException
all the names are correct
any idea whythe error ?
maybe i'm not getting to the key correctly ?
thanks to all helpers!
if let's say i have a User user
and i have a Session sesh

and i do


the question is what will the second commit do ?
will it enter that same user twice with a diffrent id ?
or will it forget his data after the first commit has happend(and do nothing)?
thanks in advance to all helpers!
trying to get a method in there that will scale the photo to a certain height and width , the ImageIcon img1 is unneccesery just delete that

and i want that method to work on ImageIcons in my project
that's the goal
7 years ago
well i tried this :



but no go, i'm missing something
7 years ago
hello all

well , basicly what i'm trying to do is adding another small method to an excisting java class (ImageIcon)
any ideas if it's possible and in which direction should i go ?
thanks to all helpers!
7 years ago
thanks a lot ,

did it

thanks to all the helpers
7 years ago
setHorizontal/VerticalTextPosition tried them with center but still no text shows

if i remove the seticon line it shows the text normaly (but no icon obviously )
my only guess is the icon comes above the text is that possible ? seems weird
7 years ago
hello all .
i'm trying to make a background image to a jbutton and then put a text on it

but when i do put the icon on it, it puts the icon over the text and doesn't show the text ...
i also have a background image in the background (but i don't see it making a diffrence because i used lp)
here's a sample of what i did


any ideas ?
thanks to all the helpers
7 years ago
been sitting on it for hours , still no idea

now it's saying :

java.lang.IllegalArgumentException: input == null!

i tried


and



both doing the same input == null!
the folder and file name is correct
any ideas ??
8 years ago
No i tried both thought maybe there is a problem with jpgs but thats not it
8 years ago
ok i tried it this way but when i run it , it doesn't show the background picture
and in the exception it's saying

java.net.MalformedURLException: no protocol: images/c.gif

any ideas why or what that means ?
8 years ago
hello ,
i'm trying to make a small game ,
i never done this before and got mixed up in the menus
i tried to make a background image and it worked
now i'm trying to put a jbutton on top of the background picture
and it won't show the button i'm guessing it's not on top
any ideas how to solve it ?

here's what i did to get the background image ( the rest is mostly netbeans auto)



thanks to all helpers
8 years ago
found it !
it was supposed to be


heh thanks for the fresh eyes