All Questions
13
questions
4
votes
2
answers
2k
views
unapply method of a case class is not used by the Scala compiler to do pattern matching, why is that?
abstract class Animal
case class Cat(name: String) extends Animal
case class Dog(name: String) extends Animal
Say I have defined Cat and Dog, two case classes.
Then I use them like this:
val ...
3
votes
1
answer
733
views
Cannot instantiate ObservableList with an extractor
I have a custom object FermentableInRecipe, which populates a TableView. In order to respond to changes to items in the list, as well as the list itself, I have decided to employ an extractor. Here is ...
2
votes
1
answer
3k
views
Java Metadata Extractor causes java.lang.NoClassDefFoundError
I'm trying to use this library for Images Metadata Extraction in Java https://github.com/drewnoakes/metadata-extractor , using NetBeans.
I imported the file metadata-extractor-2.7.0.jar into the jar ...
2
votes
0
answers
87
views
TableView navigates to the last row cell after commit edit when using extractor for TableView ObservableList
I have a TableView of Bean type that consists of name, quantity, price, and total price columns. These columns have the ability to be changed using TextFieldTableCell except the total column which is ...
1
vote
1
answer
154
views
Email Extractor Java Pattern excluding characters before a dot
I am currently using an email extractor which is working well, but I would like to change its pattern which is:
[^a-zA-Z0-9-](?<num>[a-zA-Z0-9_-]{2,20}@[A-Za-z0-9_-]{3,20}\.[\.a-zA-Z0-9_-]+)[^a-...
0
votes
2
answers
1k
views
Design pattern for consecutive object value extractor
Consider an object that extracts object values from a source on a "pull" basis, until a special value (e.g., null) is encountered.
In Java, the API could be something like
public interface ...
0
votes
2
answers
479
views
java: extract points from a txt file [closed]
Suppose I have a txt file called "filename". The data inside is as following,
N
12 39
34 23
12 22
5 7
7 10
11 8
.
.
.
left column contains the x value of each point. Right column ...
0
votes
1
answer
624
views
Cannot install JMeter's JSON Path Extractor Plugin
I cannot install JSON Path Extractor Plugin from Plugin manager nor manually.
I saw this answer but I cannot find the plugin by name using plugin manager and the same here https://jmeter-plugins.org/...
0
votes
1
answer
530
views
JavaFX: Make TableColumn observe formatted Double with extractor functionality
I have a TableView poulated by an ObservableList of a custom object FermentableInRecipe, where one of the TableColumns is defined to handle Numbers, and should display values as a percentage.
The ...
0
votes
0
answers
225
views
JavaFX ContextMenu items not displaying changes during runtime
So I am writing an AutosuggestMenu that adds a listener to a TextField and recommends suggestions in a popup ContextMenu, based on comparing the keystrokes entered with the Collection of words ...
0
votes
0
answers
662
views
Dealing with NULL in ObservableList Extractors
I have an ObservableList with an extractor, so that the listener attached to the object fires when properties of the items in the list are changed:
ObservableList<User> users = FXCollections....
0
votes
1
answer
769
views
How to remove Hyperlink and images in word document?
I have tried to remove Hyperlink and image in word document using Apache POI?
this is my code
String text;
for (String coba : xw.getParagraphText()) {
text = xw.stripFields(coba);
text = coba....
0
votes
2
answers
2k
views
Library that can extract and play video file
I will build a simple program that
Can play video file (.mp4) in my program.
Can extract the video, so that I can get the title, length, subtitle, and the audio, etc.
What is the library in Java ...