Skip to content

Tag: java

Putting panels in a big Panel

I want to create a Frame with a big panel with flow layout which contains several smaller panels with a given size. I thought I could do like this: (The JFrame is given) If I run this, I just get my big panel in gray and I only see a small red square in the top middle of my frame,

Why should I use jdk1.8.0 instead of jdk-17?

I am studying Scala, with IntelliJ IDEA. Project SDK was always jdk-17, everything was OK, until now. I began practicing in actors (Akka in action using Scala). Problems (like scalac: Error: Error compiling the sbt component ‘compiler-interface-2.11.8-61.0’) started compiling book examples. The ad…

reading a whole date and time with spaces in a file

this question may have been asked before but didn’t find any clue for my problem here, here is my problem : I have a file that is like this : abc fg Sat Jan 08 19:06:21 IST 2022 4 4.0 here is my code that reads from the file : now i want each “token.nextToken();“` inside the ShortDeliveries …

How to sort a Lucene long date range by date

Problem: I want to search books by date range, but sort the result. Searching by date range works, but the documents are not sorted properly (Insertion order, see ID?): To sort them by date, I changed my code to: Add NumericDocValuesField: Add a Sort: Question: What am I doing wrong? What do I need to change …