diff --git a/src/main/java/ai/nets/samj/gui/Constants.java b/src/main/java/ai/nets/samj/gui/Constants.java new file mode 100644 index 0000000..ac64196 --- /dev/null +++ b/src/main/java/ai/nets/samj/gui/Constants.java @@ -0,0 +1,30 @@ +/*- + * #%L + * Library to call models of the family of SAM (Segment Anything Model) from Java + * %% + * Copyright (C) 2024 SAMJ developers. + * %% + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * #L% + */ +package ai.nets.samj.gui; + +/** + * Constants for the SAMJ plugin, such as the version and others + * @author Carlos Garcia Lopez de Haro + */ +public class Constants { + + public static final String VERSION = "0.0.1"; + +} diff --git a/src/main/java/ai/nets/samj/gui/SAMJDialog.java b/src/main/java/ai/nets/samj/gui/SAMJDialog.java index 7e30588..3ba42c8 100644 --- a/src/main/java/ai/nets/samj/gui/SAMJDialog.java +++ b/src/main/java/ai/nets/samj/gui/SAMJDialog.java @@ -104,7 +104,7 @@ public class SAMJDialog extends JPanel implements ActionListener, PopupMenuListe /** * Text field containing copyrigth info */ - private JTextField txtStatus = new JTextField("(c) SAMJ team 2024 - EARLY RELEASE"); + private JTextField txtStatus = new JTextField("(c) SAMJ team 2024 - " + Constants.VERSION); /** * Button that activates the annotation with SAMJ models using bounding box prompts */